Skip to content

Commit 27c732c

Browse files
committed
Shorten GitHub URLs in generate-email.sh
1 parent 70ffe9f commit 27c732c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/generate-email.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ RELEASE_NOTES_FILE="$SCRIPT_DIR/../src/site/_release-notes/_$PROJECT_VERSION.ado
4949

5050
dump_release_notes() {
5151
awk "f{print} /^Release date::/{f=1}" "$RELEASE_NOTES_FILE" \
52-
| sed -r 's!'$PROJECT_REPO'/(issues|pull)/[0-9]+\[([0-9]+)\]!#\2!g'
52+
| sed -r 's!'$PROJECT_REPO'/(issues|pull)/[0-9]+\[([0-9]+)\]!#\2!g' \
53+
| sed -r 's!https://github.com/([^/]+)/([^/]+)/(pull|issues)/([0-9]+)\[(\1/\2#\4)\]!\5!g'
5354
}
5455

5556
case $1 in

0 commit comments

Comments
 (0)