From bd2a010990d15884ca863e8732e1556e6338299c Mon Sep 17 00:00:00 2001 From: Florian Beisel Date: Sun, 14 Jan 2024 22:53:20 +0100 Subject: [PATCH 1/2] 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 -- 2.40.1 From c2c218d18957db7f32d3830438cf6f2192a2949a Mon Sep 17 00:00:00 2001 From: Florian Beisel Date: Sun, 14 Jan 2024 22:55:22 +0100 Subject: [PATCH 2/2] docs: :memo: add a changelog.md This Commit adds CHANGELOG.md to the root of the repository to keep a version history independent of the Git Hosting environment --- CHANGELOG.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..47e1ff2 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,30 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog], +and this project adheres to [Semantic Versioning]. + +## [Unreleased] + +### Changed + +- Change executable name in the Docker image to `gitea-register-account-bot` + +### Security + +- Use non root user in the Docker image + +## [0.0.1] - 2024-01-10 + +### Added + +- Added gitea account registration via !register + + +[keep a changelog]: https://keepachangelog.com/en/1.0.0/ +[semantic versioning]: https://semver.org/spec/v2.0.0.html + + +[unreleased]: https://git.beisel.it/beisel.org/gitea-register-account-bot/compare/v0.0.1...HEAD +[0.0.1]: https://git.beisel.it/beisel.org/gitea-register-account-bot/releases/tag/v0.0.1 -- 2.40.1