Skip to content

Commit d599066

Browse files
committed
chore: Fixes commit links in the changelog generator
1 parent 13b408d commit d599066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/changelog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ trap 'echo "An error occurred at line $LINENO. Exiting."' ERR
1111
# Path to the Git repository (current directory)
1212
REPO_DIR="."
1313
CHANGELOG_FILE="$REPO_DIR/CHANGELOG.md"
14-
GITHUB_REPO_URL=$(git remote get-url origin 2>/dev/null | sed 's/\.git$//')
14+
GITHUB_REPO_URL=$(git remote get-url origin 2>/dev/null | sed 's/^git@/https:\/\//;s/github\.com:/github.com\//;s/\.git$//')
1515
if [ -z "$GITHUB_REPO_URL" ]; then
1616
GITHUB_REPO_URL=0
1717
fi

0 commit comments

Comments
 (0)