Skip to content

Commit

Permalink
fix(ci): clean changelog generation
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet committed Dec 15, 2023
1 parent 9f1f7f6 commit 23c8715
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/generate-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

num_tags=60
excluded_author="GitHub"
project_url="https://github.com/AxaFrance/oidc-client/commit"

# Get all tag names in reverse order
tags=(`git tag -l --sort=-creatordate | head -$num_tags`)
Expand Down Expand Up @@ -39,7 +40,7 @@ do
if [ "$author" != "$excluded_author" ]; then
# Get commit log in the desired format.
# You can modify the 'format' as per your need. Please refer 'PRETTY FORMATS' section of git-log man page
log=$(git log -1 --pretty=format:"[%h](https://github.com/AxaFrance/oidc-client/commit/%H) - %s, %ad by *%an*" --date=short $hash)
log=$(git log -1 --pretty=format:"[%h]($project_url/%H) - %s, %ad by *%an*" --date=short $hash)

# Write formatted log to CHANGELOG.md file
echo "- $log" >> $outfile
Expand Down

0 comments on commit 23c8715

Please sign in to comment.