From bd2a010990d15884ca863e8732e1556e6338299c Mon Sep 17 00:00:00 2001 From: Florian Beisel Date: Sun, 14 Jan 2024 22:53:20 +0100 Subject: [PATCH] ci: :construction_worker: adds configuration for gitea-release-drafter This commit adds the configuration for gitea-release-drafter and an corresponding workflow to autoamtically draft release notes on successfull merges to the main branch. --- .gitea/release-drafter.yml | 30 ++++++++++++++++++++++++++++++ .gitea/workflows/draft-release.yml | 17 +++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .gitea/release-drafter.yml create mode 100644 .gitea/workflows/draft-release.yml diff --git a/.gitea/release-drafter.yml b/.gitea/release-drafter.yml new file mode 100644 index 0000000..4593470 --- /dev/null +++ b/.gitea/release-drafter.yml @@ -0,0 +1,30 @@ +name-template: 'v$RESOLVED_VERSION 🌈' +tag-template: 'v$RESOLVED_VERSION' + +version-resolver: + major: + labels: + - 'ReleaseTarget/Major' + - 'Kind/Breaking' + minor: + labels: + - 'ReleaseTarget/Minor' + patch: + labels: + - 'ReleaseTarget/Patch' + default: patch + +categories: + - title: '🚀 Features' + labels: + - 'Kind/Breaking' + - 'Kind/Feature' + - 'Kind/Enhancement' + - title: '🐛 Bug Fixes' + labels: + - 'Kind/Bug' + - 'Kind/Security' + - title: '🧰 Maintenance' + labels: + - 'Kind/Documentation' + - 'Kind/CI' \ No newline at end of file diff --git a/.gitea/workflows/draft-release.yml b/.gitea/workflows/draft-release.yml new file mode 100644 index 0000000..9e5e807 --- /dev/null +++ b/.gitea/workflows/draft-release.yml @@ -0,0 +1,17 @@ +on: + push: + branches: + - main + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: '1.20' + + - name: Use Go Action + id: use-go-action + uses: https://git.beisel.it/florian/gitea-release-drafter@main