Skip to content

Commit

Permalink
Add a Custom Release Note generator (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeelDobariya38 authored Nov 11, 2023
2 parents 416b922 + 2227ca5 commit 0cce478
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# .github/release.yml

changelog:
categories:
- title: New Features 🚀
labels:
- feature
- enhancement
- title: Bug Fixes 🐛
labels:
- bug
- title: Documentation 📚
labels:
- documentation
- title: Other Changes
labels:
- "*"
8 changes: 5 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ jobs:
steps:
- name: Check release type
run: |
if [ "${{ github.event_name }}" == "release" ]; then
if [ "${{ github.event.action }}" == "published" ]; then
echo "This is a stable release."
elif [ "${{ github.event_name }}" == "prerelease" ]; then
elif [ "${{ github.event.action }}" == "prereleased" ]; then
echo "This is a prerelease."
else
echo "Unexpected release action."
fi
Lint:
Expand Down Expand Up @@ -78,7 +80,7 @@ jobs:
Publish:
runs-on: ubuntu-latest

needs: Test
needs: [Test, Release-nature]

steps:
- name: Set up Python
Expand Down

0 comments on commit 0cce478

Please sign in to comment.