From 27bbe58aceefb2eee99bf778a3351ef4ffd23965 Mon Sep 17 00:00:00 2001 From: Artem Bortnikov Date: Sun, 17 Mar 2024 00:28:07 +0200 Subject: [PATCH 1/2] release-drafter Signed-off-by: Artem Bortnikov --- .github/release-drafter.yml | 61 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 18 ++++++++ 2 files changed, 79 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 00000000..0f58b5a0 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,61 @@ +name-template: 'v$RESOLVED_VERSION' +tag-template: 'v$RESOLVED_VERSION' +categories: + - title: 'Features' + labels: + - 'feature' + - 'enhancement' + - title: 'Bug Fixes' + labels: + - 'bugfix' + - title: 'Maintenance' + labels: + - 'chore' + - 'dependencies' + - 'documentation' +change-template: '- $TITLE @$AUTHOR (#$NUMBER)' +change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. +version-resolver: + major: + labels: + - 'major' + minor: + labels: + - 'minor' + patch: + labels: + - 'patch' + default: patch +exclude-labels: + - 'skip-changelog' +autolabeler: + - label: 'api-change' + files: + - '/api/*' + - label: 'controllers' + files: + - '/internal/*' + - label: 'bugfix' + branch: + - '/fix\/.+/' + - '/bugfix\/.+/' + - label: 'feature' + branch: + - '/feature\/.+/' + - label: 'enhancement' + branch: + - '/enh\/.+/' + - label: 'chore' + branch: + - '/chore\/.+/' + - label: 'dependencies' + branch: + - '/deps\/.+/' + - label: 'documentation' + files: + - '**/*.md' + branch: + - '/docs\/.+/' +template: | + ## Changes + $CHANGES \ 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 00000000..4d1db0cc --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,18 @@ +name: Release Drafter + +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v6 + with: + disable-releaser: github.ref != 'refs/heads/main' + config-name: release-drafter.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 094ec1f84183a7b93dfa3fb1160eb32fc8630a72 Mon Sep 17 00:00:00 2001 From: Artem Bortnikov Date: Mon, 18 Mar 2024 13:08:54 +0200 Subject: [PATCH 2/2] fix pre-commit errors Signed-off-by: Artem Bortnikov --- .github/release-drafter.yml | 2 +- .github/workflows/release-drafter.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 0f58b5a0..b782607b 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -58,4 +58,4 @@ autolabeler: - '/docs\/.+/' template: | ## Changes - $CHANGES \ No newline at end of file + $CHANGES diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 4d1db0cc..21bccc18 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -15,4 +15,4 @@ jobs: disable-releaser: github.ref != 'refs/heads/main' config-name: release-drafter.yml env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}