From be5ef3448e27024b08bd5b38a08ada7631497ddd Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 14 Mar 2026 21:45:25 -0700 Subject: [PATCH] Chore: add release drafter (#6424) --- .github/release-drafter.yml | 78 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 29 ++++++++++ 2 files changed, 107 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..189fec070 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,78 @@ +name-template: 'v$RESOLVED_VERSION' +tag-template: 'v$RESOLVED_VERSION' +change-template: '- $TITLE (#$NUMBER) @$AUTHOR' +change-title-escapes: '\\<*_&' + +version-resolver: + major: + labels: + - 'major' + - 'breaking-change' + minor: + labels: + - 'enhancement' + - 'feature' + patch: + labels: + - 'bug' + - 'fix' + - 'dependencies' + - 'documentation' + default: patch + +categories: + - title: '⚠️ Breaking Changes' + labels: + - 'major' + - 'breaking-change' + - title: '🚀 Features' + labels: + - 'enhancement' + - 'feature' + - title: '🐛 Fixes' + labels: + - 'bug' + - 'fix' + - title: '🧰 Maintenance' + labels: + - 'dependencies' + - 'ci' + - 'chore' + - title: '📚 Documentation' + labels: + - 'documentation' + +autolabeler: + - label: 'documentation' + files: + - 'docs/**' + - '*.md' + - '.github/**/*.md' + + - label: 'ci' + files: + - '.github/workflows/**' + + - label: 'dependencies' + files: + - 'package.json' + - 'pnpm-lock.yaml' + - 'pyproject.toml' + - 'uv.lock' + + - label: 'feature' + files: + - 'src/components/**' + - 'src/widgets/**' + - 'src/pages/**' + + - label: 'chore' + files: + - 'Dockerfile*' + - 'docker-entrypoint.sh' + - 'k3d/**' + +template: | + ## What's Changed + + $CHANGES diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 000000000..a5097afd4 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,29 @@ +name: Release Drafter + +on: + push: + branches: + - main + pull_request_target: + types: [opened, reopened, synchronize] + workflow_dispatch: + inputs: + version: + description: "Optional explicit version override (for example: 2.0.0)" + required: false + type: string + +permissions: + contents: read + pull-requests: write + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v6 + with: + config-name: release-drafter.yml + version: ${{ github.event.inputs.version }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}