Skip to content

Commit

Permalink
Merge pull request #12236 from grails/releasenotes
Browse files Browse the repository at this point in the history
Update Release Note Workflow Config, Release Drafter template
  • Loading branch information
puneetbehl committed Dec 8, 2021
2 parents a6497bd + 63e2b06 commit 0a7142c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
32 changes: 18 additions & 14 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
name-template: $RESOLVED_VERSION
tag-template: v$RESOLVED_VERSION
version-resolver:
major:
labels:
- 'type: major'
minor:
labels:
- 'type: minor'
patch:
labels:
- 'type: patch'
default: patch
categories:
- title: 🚀 Features
- title: Features
labels:
- "type: enhancement"
- "type: new feature"
- "type: major"
- title: 🚀 Bug Fixes/Improvements
- title: 🐛 Bug Fixes/Improvements
labels:
- "type: improvement"
- "type: bug"
Expand All @@ -26,9 +15,24 @@ categories:
labels:
- "type: dependency upgrade"
- "dependencies"
- title: ⚙️ Build/CI
labels:
- "type: ci"
- "type: build"
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
version-resolver:
major:
labels:
- 'type: major'
minor:
labels:
- 'type: minor'
patch:
labels:
- 'type: patch'
default: patch
template: |
## Changes
## What's Changed
$CHANGES
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@ jobs:
run: |
has_release_drafter=$([ -f .github/release-drafter.yml ] && echo "true" || echo "false")
echo ::set-output name=has_release_drafter::${has_release_drafter}
- name: Extract branch name
id: extract_branch
run: echo ::set-output name=value::${GITHUB_REF:11}
# If it has release drafter:
- uses: release-drafter/release-drafter@v5.15.0
if: steps.check_release_drafter.outputs.has_release_drafter == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
commitish: master
commitish: ${{ steps.extract_branch.outputs.value }}
filter-by-commitish: true
# Otherwise:
- name: Export Gradle Properties
if: steps.check_release_drafter.outputs.has_release_drafter == 'false'
Expand Down

0 comments on commit 0a7142c

Please sign in to comment.