-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 903 Bytes
/
chore.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Chore checks
on:
push:
branches-ignore: ["main"]
pull_request:
branches-ignore: ["main"]
jobs:
fixup-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check absence of fixup commits
run: |
! git log --pretty=format:%s | grep 'fixup!'
check-changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check that a CHANGELOG has been modified in the current branch
run: |
git diff --name-only origin/main | grep CHANGELOG
lint-changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check CHANGELOG max line length
run: |
test $(cat CHANGELOG.md | grep -Ev "^\[.*\]: https://github.com/jmaupetit/data7" | wc -L) -le 80