From db2dfb466bf32dad7dc90f33e020d43ae6231700 Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Sun, 29 Mar 2026 21:47:11 +0200 Subject: [PATCH 1/6] ci: add 'check-pr-title' job to pipeline --- .gitea/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 5985296..d2b62c7 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -6,6 +6,17 @@ on: pull_request: jobs: + check-pr-title: + name: Check PR Title + runs-on: ubuntu-latest + steps: + - run: | + TITLE="${{ gitea.event.pull_request.title }}" + if ! echo "$TITLE" | grep -qE '^(feat|fix|docs|chore|ci|test|refactor|perf|build|style|revert)(\(.+\))?(!)?: .+'; then + echo "::error::Pull Request title must follow conventional commits" + exit 1 + fi + lint-go: name: Go Lint runs-on: ubuntu-latest -- 2.49.1 From 3bb663dc8b424dc67cc9cbe4de222527ebb92def Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Sun, 29 Mar 2026 21:49:59 +0200 Subject: [PATCH 2/6] ci: release workflow with 'go-releaser' --- .gitea/workflows/release.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/release.yml diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..54b0432 --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,22 @@ +name: Release +on: + push: + tags: ["v*"] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/setup-go@v5 + with: + go-version-file: go.mod + + - uses: goreleaser/goreleaser-action@v6 + with: + args: release --clean + env: + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} -- 2.49.1 From cbe448332699284e8a66b41734f7566d66b3e18d Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Sun, 29 Mar 2026 22:00:54 +0200 Subject: [PATCH 3/6] revert: release.yml - It is not needed, because this is a library. We are not shipping a binary. --- .gitea/workflows/release.yml | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 .gitea/workflows/release.yml diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml deleted file mode 100644 index 54b0432..0000000 --- a/.gitea/workflows/release.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Release -on: - push: - tags: ["v*"] - -jobs: - release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - uses: actions/setup-go@v5 - with: - go-version-file: go.mod - - - uses: goreleaser/goreleaser-action@v6 - with: - args: release --clean - env: - GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} -- 2.49.1 From 521b38c55052f3eddb9a73e146f3774afd1a2ba0 Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Sun, 29 Mar 2026 22:19:46 +0200 Subject: [PATCH 4/6] ci: issue templates, issue config --- .gitea/ISSUE_TEMPLATE/BUG_REPORT.yml | 26 +++++++++++++ .gitea/ISSUE_TEMPLATE/FEATURE_REQUEST.yml | 45 +++++++++++++++++++++++ .gitea/ISSUE_TEMPLATE/config.yml | 2 + 3 files changed, 73 insertions(+) create mode 100644 .gitea/ISSUE_TEMPLATE/BUG_REPORT.yml create mode 100644 .gitea/ISSUE_TEMPLATE/FEATURE_REQUEST.yml create mode 100644 .gitea/ISSUE_TEMPLATE/config.yml diff --git a/.gitea/ISSUE_TEMPLATE/BUG_REPORT.yml b/.gitea/ISSUE_TEMPLATE/BUG_REPORT.yml new file mode 100644 index 0000000..8868ab6 --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/BUG_REPORT.yml @@ -0,0 +1,26 @@ +# yaml-language-server: $schema=https://www.schemastore.org/gitea-issue-forms.json +name: 🐛 Bug Report +about: Report a bug in this project +title: "[BUG]: " +body: + - type: textarea + id: context + attributes: + label: Context + description: What circumstances led to the bug? + validations: + required: true + - type: textarea + id: expected-behavior + attributes: + label: Expected Behavior + description: What did you expect would happen? + validations: + required: true + - type: textarea + id: actual-behavior + attributes: + label: Actual Behavior + description: What happened, and why was it unexpected? + validations: + required: true diff --git a/.gitea/ISSUE_TEMPLATE/FEATURE_REQUEST.yml b/.gitea/ISSUE_TEMPLATE/FEATURE_REQUEST.yml new file mode 100644 index 0000000..2473b0d --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/FEATURE_REQUEST.yml @@ -0,0 +1,45 @@ +# 'Feature Request Template' By @cheehwatang +# https://github.com/cheehwatang/.github/blob/master/.github/ISSUE_TEMPLATE/feature_request.yml +# +# yaml-language-server: $schema=https://www.schemastore.org/gitea-issue-forms.json +name: ✨ Feature Request +about: Suggest an idea for this project +title: "[FEATURE]: " +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this feature request! 🤗 + + Please make sure this feature request hasn't been already submitted by + someone by looking through other open/closed issues. 😃 + - type: dropdown + attributes: + multiple: false + label: Type of Feature + description: Select the type of feature request. + options: + - "✨ New Feature" + - "📝 Documentation" + - "🎨 Style and UI" + - "🔨 Code Refactor" + - "⚡ Performance Improvements" + - "✅ New Test" + validations: + required: true + - type: textarea + id: description + attributes: + label: Description + description: | + Give us a brief description of the feature or enhancement you would + like! + validations: + required: true + - type: textarea + id: additional-information + attributes: + label: Additional Information + description: | + Give us some additional information on the feature request like proposed + solutions, links, screenshots, etc. diff --git a/.gitea/ISSUE_TEMPLATE/config.yml b/.gitea/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..f2ee47f --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,2 @@ +# yaml-language-server: $schema=https://www.schemastore.org/gitea-issue-config.json +blank_issues_enabled: true \ No newline at end of file -- 2.49.1 From 9b663907c4770626de42f2597fc84a96026f4cb8 Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Sun, 29 Mar 2026 22:25:06 +0200 Subject: [PATCH 5/6] fix: update check-pr-title to allow "WIP: " --- .gitea/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index d2b62c7..b0ef1f8 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: steps: - run: | TITLE="${{ gitea.event.pull_request.title }}" - if ! echo "$TITLE" | grep -qE '^(feat|fix|docs|chore|ci|test|refactor|perf|build|style|revert)(\(.+\))?(!)?: .+'; then + if ! echo "$TITLE" | grep -qE '^(WIP: )?(feat|fix|docs|chore|ci|test|refactor|perf|build|style|revert)(\(.+\))?(!)?: .+'; then echo "::error::Pull Request title must follow conventional commits" exit 1 fi -- 2.49.1 From 1328b315e3b12b9f325ad9edd9806a73e6cb7b10 Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Sun, 29 Mar 2026 22:54:54 +0200 Subject: [PATCH 6/6] ci: simple pr template --- .gitea/PULL_REQUEST_TEMPLATE.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitea/PULL_REQUEST_TEMPLATE.md diff --git a/.gitea/PULL_REQUEST_TEMPLATE.md b/.gitea/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..0ee865f --- /dev/null +++ b/.gitea/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,17 @@ +--- +name: "New Pull Request" +about: "Standard PR template" +title: "" +ref: "main" +--- + +## Description + +## Changes + +### Design Decisions + +## Checklist + +- [ ] Tests pass +- [ ] Docs updated -- 2.49.1