Skip to content

Commit

Permalink
In merge summary construct correct PR link
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Mar 16, 2023
1 parent dc0254b commit 6dee647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gen-merge-summary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ git log --merges --since $since --until $until --format=fuller \
| (.subject = (.message | split("\n"))[0])
| (.body = (.message | split("\n") | del(.[0]) | del(.[0]) | join("\n")))
| select(.subject | startswith("Merge pull request #"))
| (.subject |= sub("^.*#"; ""))
| (.subject |= sub("^.*#(?<a>[0-9]+) .*$"; .a))
| ("- [" + (.body | gsub("\n.*"; "")) + "](https://github.com/input-output-hk/cardano-node/pull/" + .subject + ") (" + .author + ")")
'

0 comments on commit 6dee647

Please sign in to comment.