mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
🔧 misc(release): add author link only on full changelog
Makes it easier to auto-release with `cd.yml`, as release descriptions automatically link to GitHub profiles based on the handle.
This commit is contained in:
parent
46ad1f011e
commit
8de049a2b5
3 changed files with 3 additions and 4 deletions
3
release
3
release
|
@ -40,6 +40,7 @@ echo
|
|||
|
||||
# Update CHANGELOG.
|
||||
git cliff --tag "$VERSION_TAG" -o CHANGELOG.md
|
||||
sed -i.bak -e 's/ @\([a-zA-Z0-9]\([-a-zA-Z0-9]*[a-zA-Z0-9]\)\?\)/ [@\1](https:\/\/github.com\/\1)/g' CHANGELOG.md && rm CHANGELOG.md.bak
|
||||
|
||||
# Add all changes and commit.
|
||||
git add -A
|
||||
|
@ -56,8 +57,6 @@ changelog=$(echo "$changelog" | sed -E 's/\[\#([0-9]+)\]\(https:\/\/github\.com\
|
|||
changelog=$(echo "$changelog" | sed -E 's/\[([0-9a-f]+)\]\(https:\/\/github\.com\/welpo\/[^\/]+\/commit\/([0-9a-f]+)\)/\1/g')
|
||||
# Remove scopes.
|
||||
changelog=$(echo "$changelog" | sed -E 's/\*\(([^)]+)\)\* //g')
|
||||
# Remove @author links, leaving just the username.
|
||||
changelog=$(echo "$changelog" | sed -E 's/\[\@([a-zA-Z0-9_]+)\]\(https:\/\/github\.com\/[a-zA-Z0-9_]+\)/@\1/g')
|
||||
# Remove markdown headers.
|
||||
changelog=$(echo "$changelog" | sed -E 's/^#+ //g')
|
||||
# Remove version comparison lines.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue