File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -70,13 +70,17 @@ jobs:
7070 delta=$(echo "$NEW_COMMIT_N - $OLD_COMMIT_N" | bc)
7171 echo -en "# Commits since last release\n\n" > body.md
7272 echo -en "Check [upstream](https://github.com//flatwhatson/emacs/commits) for the full history.\n\n" >> body.md
73- # What is going on here?
73+ # Next command:
7474 # 1. We get the list of commits since last release
7575 # 2. We use jq to parse and retain only the commit message + its url
7676 # 3. First sed to remove "Merge" commits
7777 # 4. Second sed to remove any special char at the beginning of the message
7878 # 5. Third sed to prepend the message with "- "
79- curl -s "$UPSTREAM_GH"/commits?per_page="$delta" | jq -r '.[].commit | (.message | capture("(?<id>.+)\n").id) + " [commit](" + .html_url + ")"' | sed '/^Merge/,+1 d' | sed 's/^[^[:alnum:]]*//' | sed -r 's/(.*)/- \1/' >> body.md
79+ curl -s "$UPSTREAM_GH"/commits?per_page="$delta" |
80+ jq -r '.[].commit | (.message | capture("(?<id>.+)\n").id) + " [commit](" + .html_url + ")"' |
81+ sed '/^Merge/,+1 d' |
82+ sed 's/^[^[:alnum:]]*//' |
83+ sed -r 's/(.*)/- \1/' >> body.md
8084 - name : Create Release
8185 id : create_release
8286 uses : actions/create-release@v1
You can’t perform that action at this time.
0 commit comments