Skip to content

Commit a477096

Browse files
committed
Add linter for CHANGELOG formatting
There have been a number of recent commits introducing incorrectly formatted CHANGELOG entries: - 9f0b8eb was missing an author - 936a862 had trailing whitespace - 238432d had wrong number of leading whitespace - 51852d2 had wrong number of leading whitespace in the header To prevent these inconsistencies from happening in the future, I wrote a small linter for CHANGELOG files that catches all of the above errors.
1 parent 2e8f4cb commit a477096

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/lint.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@ permissions:
66
contents: read
77

88
jobs:
9+
changelog-formatting:
10+
name: Check CHANGELOGs formatting
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
repository: skipkayhil/rails-bin
16+
ref: 44270430c14385fd7db002b47f0819af5d824352
17+
- uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: 3.1
20+
bundler-cache: true
21+
- uses: actions/checkout@v3
22+
with:
23+
path: rails
24+
- run: bin/check-changelogs ./rails
925
codespell:
1026
name: Check spelling all files with codespell
1127
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)