👷 misc(release): replace both pull and issue links

main
welpo 12 months ago
parent faaaee2f59
commit e951e95110
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

@ -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.

Loading…
Cancel
Save