Skip to content

Commit

Permalink
👷 misc(release): replace both pull and issue links
Browse files Browse the repository at this point in the history
  • Loading branch information
welpo committed Mar 2, 2024
1 parent faaaee2 commit e951e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ changelog=$(git cliff --tag "$VERSION_TAG" --unreleased --strip all)

# Clean up tag's changelog; tag descriptions don't support markdown.
# Remove PR links.
changelog=$(echo "$changelog" | sed -E 's/\[\#([0-9]+)\]\(https:\/\/github\.com\/welpo\/[^\/]+\/issues\/([0-9]+)\)/#\1/g')
changelog=$(echo "$changelog" | sed -E 's/\[\#([0-9]+)\]\(https:\/\/github\.com\/welpo\/[^\/]+\/(issues|pull)\/([0-9]+)\)/#\1/g')
# Remove commit links.
changelog=$(echo "$changelog" | sed -E 's/\[([0-9a-f]+)\]\(https:\/\/github\.com\/welpo\/[^\/]+\/commit\/([0-9a-f]+)\)/\1/g')
# Remove scopes.
Expand Down

0 comments on commit e951e95

Please sign in to comment.