Skip to content

Commit

Permalink
Merge pull request #393 from nimblehq/feature/#373-automatically-draf…
Browse files Browse the repository at this point in the history
…-a-release

[#373] Add a workflow to automatically draft a release
  • Loading branch information
vnntsu authored Nov 29, 2022
2 parents 5080933 + af7f096 commit a16fe91
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name-template: '$RESOLVED_VERSION'
tag-template: '$RESOLVED_VERSION'
categories:
- title: 'Features'
labels:
- 'type : feature'
- title: 'Chores'
label:
- 'type : chore'
- title: 'Bugs'
labels:
- 'type : bug'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
minor:
labels:
- 'type : feature'
- 'type : chore'
patch:
labels:
- 'type : bug'
default: minor

template: |
$CHANGES
18 changes: 18 additions & 0 deletions .github/workflows/draft-a-new-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Draft a new release

on:
push:
branches:
- main
permissions:
contents: read

jobs:
update_release_draft:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a16fe91

Please sign in to comment.