diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..0df38d9 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,55 @@ +name-template: 'v$RESOLVED_VERSION' +tag-template: 'v$RESOLVED_VERSION' +categories: + - title: '️⚠️ Breaking changes' + labels: + - 'breaking' + - title: '🚀 Features' + labels: + - 'feat' + - 'feature' + - 'enhancement' + - title: '🐛 Bug Fixes' + labels: + - 'fix' + - 'bugfix' + - 'bug' + - title: '🌈 Tech improvements' + labels: + - 'chore' + - 'tech' + - 'refactor' + - 'refactoring' + - 'ci' + - 'test' + - 'documentation' + - title: '🛠️ Dependency updates' + collapse-after: 3 + labels: + - 'deps' + - 'dependencies' + - title: '🏗️ Infrastructure changes' + collapse-after: 3 + labels: + - 'infra' + - 'deploy' +change-template: '- $TITLE @$AUTHOR (#$NUMBER)' +change-title-escapes: '\<*_&' +exclude-labels: + - 'skip-changelog' +version-resolver: + major: + labels: + - 'major' + minor: + labels: + - 'minor' + - 'feat' + - 'feature' + - 'enhancement' + patch: + labels: + - 'patch' + default: patch +template: | + $CHANGES diff --git a/.github/release.yaml b/.github/release.yaml new file mode 100644 index 0000000..0aee9d3 --- /dev/null +++ b/.github/release.yaml @@ -0,0 +1,31 @@ +changelog: + + exclude: + labels: + # custom labels + - ci + - refactoring + - temp + + categories: + - title: Features + labels: + - enhancement # standard github label + - title: Fixes + labels: + - bug # standard github label + - title: ! Breaking changes ! + labels: + - breaking change # custom label + - title: Tech improvements + labels: + - tech # custom label + - title: Dependency updates + labels: + - dependencies # standard github label + - title: Documentation + labels: + - documentation # standard github label + - title: Other changes + labels: + - "*" \ No newline at end of file diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..51282af --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,23 @@ +name: release drafter + +on: + push: + branches: + - master + pull_request: + types: [ opened, reopened, synchronize ] + +permissions: + contents: read + +jobs: + update_release_draft: + permissions: + contents: write + pull-requests: write + runs-on: ledgerhq-shared-small + steps: + - name: update release draft + uses: release-drafter/release-drafter@v6 + env: + GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }}