diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 00000000..142efd34 --- /dev/null +++ b/.github/release-drafter.yml @@ -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 diff --git a/.github/workflows/draft-a-new-release.yml b/.github/workflows/draft-a-new-release.yml new file mode 100644 index 00000000..5550e4bc --- /dev/null +++ b/.github/workflows/draft-a-new-release.yml @@ -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 }}