Skip to content

Commit

Permalink
Feature: Enhanced Changelog Categorization 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
louanfontenele committed Dec 29, 2024
1 parent 1eb0117 commit d138f04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name-template: "Release ${{ nextReleaseVersion }} 🚀"
tag-template: "v${{ nextReleaseVersion }}"

categories:
- title: "🚀 Features"
- title: "🌟 Features"
labels:
- "feature"
- title: "🐛 Bug Fixes"
Expand Down
14 changes: 7 additions & 7 deletions .github/scripts/generate-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,22 @@ fi
echo "## 🚀 Release $NEW_TAG"
echo "### What's Changed"
echo ""
# Append categorized commit history
echo "#### 🚀 Features"
git log --pretty=format:"- ✨ %s by @$GITHUB_USERNAME" $LATEST_TAG..HEAD | grep -i 'feature' || echo "- _No new features_"

# Append categorized commit history using prefixes (Feature:, Fix:, etc.)
echo "#### 🌟 Features"
git log --pretty=format:"- ✨ %s by @$GITHUB_USERNAME" $LATEST_TAG..HEAD | grep -i '^Feature:' | sed 's/Feature: //g' || echo "- _No new features_"
echo ""

echo "#### 🐛 Fixes"
git log --pretty=format:"- 🛠️ %s by @$GITHUB_USERNAME" $LATEST_TAG..HEAD | grep -i 'fix' || echo "- _No bug fixes_"
git log --pretty=format:"- 🛠️ %s by @$GITHUB_USERNAME" $LATEST_TAG..HEAD | grep -i '^Fix:' | sed 's/Fix: //g' || echo "- _No bug fixes_"
echo ""

echo "#### 📄 Documentation"
git log --pretty=format:"- 📝 %s by @$GITHUB_USERNAME" $LATEST_TAG..HEAD | grep -i 'docs' || echo "- _No documentation updates_"
git log --pretty=format:"- 📝 %s by @$GITHUB_USERNAME" $LATEST_TAG..HEAD | grep -i '^Docs:' | sed 's/Docs: //g' || echo "- _No documentation updates_"
echo ""

echo "#### 🧰 Maintenance"
git log --pretty=format:"- 🔧 %s by @$GITHUB_USERNAME" $LATEST_TAG..HEAD | grep -i 'chore\|refactor' || echo "- _No maintenance updates_"
git log --pretty=format:"- 🔧 %s by @$GITHUB_USERNAME" $LATEST_TAG..HEAD | grep -i '^Chore:\|^Refactor:' | sed 's/Chore: //g; s/Refactor: //g' || echo "- _No maintenance updates_"
echo ""

echo "---"
Expand Down

0 comments on commit d138f04

Please sign in to comment.