Skip to content

Commit 85dc1aa

Browse files
committed
chore: format code
1 parent 9451bf3 commit 85dc1aa

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)