Skip to content

Commit 341223f

Browse files
committed
ci: add changelog and enforce new entries on every PR
1 parent 56f755a commit 341223f

File tree

3 files changed

+3655
-1
lines changed

3 files changed

+3655
-1
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
---
3+
name: "Update unreleased section in CHANGELOG"
4+
on:
5+
pull_request:
6+
types: ["opened", "synchronize", "reopened", "ready_for_review", "labeled", "unlabeled"]
7+
8+
permissions:
9+
contents: "read"
10+
11+
jobs:
12+
changelog:
13+
runs-on: "depot-ubuntu-24.04-small"
14+
steps:
15+
- uses: "dangoslen/changelog-enforcer@ea6a56764870c323a4563f450c0a50c5f2d72cd6"
16+
with:
17+
skipLabels: 'Skip-Changelog,dependencies,tests'
18+
- uses: "actions/checkout@v6"
19+
- uses: "actions/setup-node@v6"
20+
- run: "npx keep-a-changelog@2.8.0"
21+
- run: |
22+
files=$(git status --porcelain)
23+
if [[ -n ${files} ]]; then
24+
>&2 echo "If your PR has a change that users might care about, please edit the CHANGELOG.md and run \`npx keep-a-changelog\`. Otherwise, add the Skip-Changelog label to your PR."
25+
>&2 echo ""
26+
>&2 echo "${files}"
27+
>&2 echo ""
28+
exit 1
29+
fi

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ nightly:
208208
release:
209209
draft: false
210210
prerelease: "auto"
211-
mode: "replace"
211+
mode: "append"
212212
footer: |
213213
## Docker Images
214214
This release is available at `authzed/spicedb:v{{ .Version }}`, `quay.io/authzed/spicedb:v{{ .Version }}`, `ghcr.io/authzed/spicedb:v{{ .Version }}`

0 commit comments

Comments
 (0)