ci: Consolidate templates for release drafter (#7597)

I believe we can DRY our release drafter config since we are not using
any of the release-specific configuration except tag and release names.
This commit is contained in:
Jamil
2024-12-30 05:51:11 -08:00
committed by GitHub
parent 90bac88194
commit eefa5a1e2a
5 changed files with 5 additions and 178 deletions

View File

@@ -1,57 +0,0 @@
tag-prefix: "gateway-"
autolabeler:
- label: "area/ci"
title:
- "/^ci/i"
- label: "kind/test"
title:
- "/^test/i"
- label: "kind/feature"
title:
- "/^feat/i"
- label: "kind/bug"
title:
- "/^fix/i"
- "/^bug/i"
- label: "kind/refactor"
title:
- "/^refactor/i"
- label: "kind/chore"
title:
- "/^chore/i"
- label: "kind/docs"
title:
- "/^docs/i"
- label: "kind/security"
title:
- "/^security/i"
- label: "dependencies"
title:
- "/^deps/i"
categories:
- title: "✨ Features"
labels:
- "kind/feature"
- title: "🐛 Bug Fixes"
labels:
- "kind/bug"
- title: "🧰 Maintenance"
label:
- "area/ci"
- "kind/test"
- "kind/refactor"
- "kind/chore"
- "kind/cleanup"
- "dependencies"
- title: "📝 Documentation"
label: "kind/docs"
- title: "🔐 Security"
label: "kind/security"
exclude-labels:
- "skip-changelog"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
template: >
Please see our
[changelog](https://www.firezone.dev/changelog?utm_source=github-releases)
for more details.

View File

@@ -1,57 +0,0 @@
tag-prefix: "gui-client-"
autolabeler:
- label: "area/ci"
title:
- "/^ci/i"
- label: "kind/test"
title:
- "/^test/i"
- label: "kind/feature"
title:
- "/^feat/i"
- label: "kind/bug"
title:
- "/^fix/i"
- "/^bug/i"
- label: "kind/refactor"
title:
- "/^refactor/i"
- label: "kind/chore"
title:
- "/^chore/i"
- label: "kind/docs"
title:
- "/^docs/i"
- label: "kind/security"
title:
- "/^security/i"
- label: "dependencies"
title:
- "/^deps/i"
categories:
- title: "✨ Features"
labels:
- "kind/feature"
- title: "🐛 Bug Fixes"
labels:
- "kind/bug"
- title: "🧰 Maintenance"
label:
- "area/ci"
- "kind/test"
- "kind/refactor"
- "kind/chore"
- "kind/cleanup"
- "dependencies"
- title: "📝 Documentation"
label: "kind/docs"
- title: "🔐 Security"
label: "kind/security"
exclude-labels:
- "skip-changelog"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
template: >
Please see our
[changelog](https://www.firezone.dev/changelog?utm_source=github-releases)
for more details.

View File

@@ -1,57 +0,0 @@
tag-prefix: "headless-client-"
autolabeler:
- label: "area/ci"
title:
- "/^ci/i"
- label: "kind/test"
title:
- "/^test/i"
- label: "kind/feature"
title:
- "/^feat/i"
- label: "kind/bug"
title:
- "/^fix/i"
- "/^bug/i"
- label: "kind/refactor"
title:
- "/^refactor/i"
- label: "kind/chore"
title:
- "/^chore/i"
- label: "kind/docs"
title:
- "/^docs/i"
- label: "kind/security"
title:
- "/^security/i"
- label: "dependencies"
title:
- "/^deps/i"
categories:
- title: "✨ Features"
labels:
- "kind/feature"
- title: "🐛 Bug Fixes"
labels:
- "kind/bug"
- title: "🧰 Maintenance"
label:
- "area/ci"
- "kind/test"
- "kind/refactor"
- "kind/chore"
- "kind/cleanup"
- "dependencies"
- title: "📝 Documentation"
label: "kind/docs"
- title: "🔐 Security"
label: "kind/security"
exclude-labels:
- "skip-changelog"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
template: >
Please see our
[changelog](https://www.firezone.dev/changelog?utm_source=github-releases)
for more details.

View File

@@ -1,4 +1,3 @@
tag-prefix: "macos-client-"
template: >
Please see our
[changelog](https://www.firezone.dev/changelog?utm_source=github-releases)

View File

@@ -40,7 +40,7 @@ jobs:
secrets: inherit
update-release-draft:
name: update-release-draft-${{ matrix.config_name }}
name: update-release-draft-${{ matrix.job_suffix }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
@@ -48,16 +48,16 @@ jobs:
include:
# mark:next-gateway-version
- release_name: gateway-1.4.3
config_name: release-drafter-gateway.yml
job_suffix: gateway
# mark:next-headless-version
- release_name: headless-client-1.4.1
config_name: release-drafter-headless-client.yml
job_suffix: headless-client
# mark:next-gui-version
- release_name: gui-client-1.4.1
config_name: release-drafter-gui-client.yml
job_suffix: gui-client
# mark:next-apple-version
- release_name: macos-client-1.4.0
config_name: release-drafter-macos-client.yml
job_suffix: macos-client
steps:
- uses: release-drafter/release-drafter@v6
@@ -65,7 +65,6 @@ jobs:
if: ${{ github.ref_name == 'main' }}
id: update-release-draft
with:
config-name: ${{ matrix.config_name }}
tag: ${{ matrix.release_name }}
version: ${{ matrix.release_name }}
name: ${{ matrix.release_name }}