Skip to content

Commit 647b67a

Browse files
committed
Adds 'export default' to gitlog_json.sh preamble, making it that much easier to generate release notes :P
1 parent b72502b commit 647b67a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/gitlog_json.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ TO=${2:-HEAD}
66
git log ${FROM}..${TO} --pretty=format:'{%n "commit": "%H",%n "abbreviated_commit": "%h",%n "tree": "%T",%n "abbreviated_tree": "%t",%n "parent": "%P",%n "abbreviated_parent": "%p",%n "refs": "%D",%n "encoding": "%e",%n "subject": `%s`,%n "sanitized_subject_line": `%f`,%n "body": `%b`,%n "commit_notes": `%N`,%n "verification_flag": "%G?",%n "signer": "%GS",%n "signer_key": "%GK",%n "author": {%n "name": "%aN",%n "email": "%aE",%n "date": "%aD"%n },%n "commiter": {%n "name": "%cN",%n "email": "%cE",%n "date": "%cD"%n }%n},' | \
77
sed "$ s/,$//" | \
88
sed ':a;N;$!ba;s/\r\n\([^{]\)/\\n\1/g' | \
9-
awk 'BEGIN { print("[") } { print($0) } END { print("]") }'
9+
awk 'BEGIN { print("export default [") } { print($0) } END { print("];") }'

0 commit comments

Comments
 (0)