Skip to content

Commit a27d95b

Browse files
committed
ci: add changelog and enforce new entries on every PR
1 parent e2758e2 commit a27d95b

File tree

6 files changed

+3675
-2
lines changed

6 files changed

+3675
-2
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 CHANGELOG.md and then 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 }}`

.markdownlint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ no-multiple-blanks: false
88
fenced-code-language: false
99
no-duplicate-heading: false
1010
blanks-around-fences: false
11+
descriptive-link-text: false
12+
table-column-style: false

.markdownlintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHANGELOG.md

0 commit comments

Comments
 (0)