Commit b3ff36b 1 parent 66d74d7 commit b3ff36b Copy full SHA for b3ff36b
File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 78
78
run : |
79
79
# Extract previous tag
80
80
PREVIOUS_TAG=$(git describe --tags --abbrev=0 $(git rev-list --tags --skip=1 --max-count=1))
81
- # Generate changelog with PR numbers
82
- CHANGELOG=$(git log ${PREVIOUS_TAG}..HEAD --pretty=format:"* %s")
81
+
82
+ # Generate changelog with PR numbers and authors in the desired format
83
+ CHANGELOG=$(git log ${PREVIOUS_TAG}..HEAD --pretty=format:"* %s by @%an in #%b" | \
84
+ sed -E 's/\(#[0-9]+\)//g' | \ # Remove PR numbers if they exist in commit message
85
+ sed -E 's/ */ /g' | \ # Clean up extra spaces
86
+ sed -E 's/ in #$//') # Remove trailing "in #" if no PR number
87
+
83
88
# Store changelog in output
84
89
echo "CHANGELOG<<EOF" >> $GITHUB_OUTPUT
85
90
echo "$CHANGELOG" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments