1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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.
This commit is contained in:
Hartley McGuire 2022-07-27 19:48:25 -04:00
parent 2e8f4cb062
commit a4770968ef
No known key found for this signature in database
GPG key ID: E823FC1403858A82

View file

@ -6,6 +6,22 @@ permissions:
contents: read
jobs:
changelog-formatting:
name: Check CHANGELOGs formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: skipkayhil/rails-bin
ref: 44270430c14385fd7db002b47f0819af5d824352
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- uses: actions/checkout@v3
with:
path: rails
- run: bin/check-changelogs ./rails
codespell:
name: Check spelling all files with codespell
runs-on: ubuntu-latest