Skip to content

Modern Docker Management, Designed for Everyone

refactor: use ai generation for github release notes (#3739)

Kyle Mendell2240e8f0c7a4
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index e6be29088..6a8f2ef35 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -115,6 +115,8 @@ jobs:
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
NODE_VERSION: ${{ steps.frontend-versions.outputs.node_version }}
SVELTEKIT_VERSION: ${{ steps.frontend-versions.outputs.sveltekit_version }}
+ OPENAI_BASE_URL: https://openrouter.ai/api/v1
+ OPENAI_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
- name: Resolve image digests
id: digests
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index 755788d47..da629be6a 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -397,7 +397,34 @@ blobs:
disable: '{{ if not (index .Env "BUILD_NEXT") }}true{{ end }}'
changelog:
- disable: true
+ disable: '{{ if isEnvSet "SKIP_CHANGELOG" }}true{{ else if isEnvSet "OPENAI_API_KEY" }}false{{ else }}true{{ end }}'
+ use: github
+ filters:
+ include:
+ - '^feat'
+ - '^fix'
+ - '^perf'
+ - '^docs'
+ - '^refactor'
+ - '^test'
+ - '^style'
+ - '^build'
+ - '^ci'
+ - '^revert'
+ - '^chore\(deps\)'
+ ai:
+ use: openai
+ model: openai/gpt-5.6-luna-pro
+ prompt: |
+ Rewrite these release notes for Arcane, a Docker management app.
+ Start with a short intro highlighting the most notable changes, wrapped
+ in a GitHub alert blockquote (a "> [!NOTE]" line followed by "> " prefixed
+ lines). The intro's first sentence must begin with "This release adds" or
+ "This release fixes". Group related changes, merge dependency bumps of the same
+ dependency into one line, and keep it concise. Keep each entry's pull
+ request or commit reference and its author attribution. No emojis.
+
+ {{ .ReleaseNotes }}
announce:
discord:
@@ -419,9 +446,5 @@ release:
replace_existing_artifacts: true
prerelease: auto
make_latest: true
- mode: keep-existing
+ mode: replace
name_template: '{{.Tag}}'
- footer: |
- ---
-
- Released by [GoReleaser](https://github.com/goreleaser/goreleaser).