From 26ae32e0e888a6130c4a855460ebf46c93c48ac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Boutemy?= Date: Fri, 10 Feb 2023 13:16:45 +0100 Subject: [PATCH] add release-drafter configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: HervΓ© Boutemy --- .github/release-drafter.yml | 65 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 19 ++++++++ 2 files changed, 84 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 000000000..014404e15 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,65 @@ +# Configuration for Release Drafter: https://github.com/toolmantim/release-drafter +name-template: $NEXT_PATCH_VERSION +tag-template: cyclonedx-core-java-$NEXT_MINOR_VERSION +version-template: $MAJOR.$MINOR.$PATCH + +# Emoji reference: https://gitmoji.carloscuesta.me/ +categories: + - title: ":boom: Breaking changes" + labels: + - breaking + - title: 🚨 Removed + label: removed + - title: ":tada: Major features and improvements" + labels: + - major-enhancement + - major-rfe + - title: πŸ› Major bug fixes + labels: + - major-bug + - title: ⚠️ Deprecated + label: deprecated + - title: πŸš€ New features and improvements + labels: + - enhancement + - feature + - rfe + - title: πŸ› Bug Fixes + labels: + - bug + - fix + - bugfix + - regression + - title: ":construction_worker: Changes for plugin developers" + labels: + - developer + # Default label used by Dependabot + - title: πŸ“¦ Dependency updates + label: + - dependencies + - dependency + - dependency-upgrade + - title: πŸ“ Documentation updates + label: documentation + - title: πŸ‘» Maintenance + labels: + - chore + - internal + - maintenance + - title: πŸ”§ Build + label: build + - title: 🚦 Tests + labels: + - test + - tests +exclude-labels: + - reverted + - no-changelog + - skip-changelog + - invalid + +change-template: '- $TITLE ([#$NUMBER]($URL)) @$AUTHOR' + +template: | + + $CHANGES diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 000000000..5ccdbd7cf --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,19 @@ +name: Release Drafter +on: + push: + branches: + - master + +permissions: + contents: read + +jobs: + update_release_draft: + permissions: + # write permission is required to create a github release + contents: write + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}