Skip to content

👷(project) add git history and changelog checks #1

👷(project) add git history and changelog checks

👷(project) add git history and changelog checks #1

Workflow file for this run

name: Chore checks

Check failure on line 1 in .github/workflows/chore.yml

View workflow run for this annotation

GitHub Actions / Chore checks

Invalid workflow file

The workflow is not valid. .github/workflows/chore.yml: (Line: 16, Col: 14, Idx: 255) - (Line: 16, Col: 15, Idx: 256): While parsing a tag, did not find expected tag URI.
on:
push:
branches-ignore: ["main"]
pull_request:
branches-ignore: ["main"]
jobs:
fixup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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
- name: Check that the CHANGELOG has been modified in the current branch
run: git whatchanged --name-only --pretty="" origin..HEAD | 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/MTES-MCT/qualicharge" | wc -L) -le 80