Skip to content

Commit 85d29ea

Browse files
authored
Merge pull request #143 from kraken-tech/validate-commits
Use validate-commits to check commits are valid
2 parents 8ecfb99 + 6c5c227 commit 85d29ea

3 files changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,24 @@ jobs:
6060
python-version-file: '.github/workflows/.python-version'
6161
- run: pip install --group docs .
6262
- run: mkdocs build --strict
63+
64+
validate_commits:
65+
runs-on: ubuntu-24.04
66+
timeout-minutes: 5
67+
68+
# Only check commits on PR branches, where they can be changed.
69+
if: github.event_name == 'pull_request'
70+
71+
steps:
72+
- uses: actions/checkout@v5
73+
with:
74+
ref: ${{ github.head_ref }}
75+
fetch-depth: 0
76+
- run: |
77+
git fetch origin main
78+
git branch main origin/main
79+
- uses: actions/setup-python@v6
80+
with:
81+
python-version-file: '.github/workflows/.python-version'
82+
- run: pip install validate_commits
83+
- run: validate-commits

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- The `--since` CLI option
13+
allows a base reference to be provided.
14+
This facilitates checking commits since a default branch
15+
that is not called 'main'.
16+
1017
## [1.0.0] - 2026-04-16
1118

1219
## [0.2.1] - 2026-02-06

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ env_list =
66
py3{12,13,14}-django{42,51,52,60}
77
coverage
88
mypy
9+
validate_commits
910

1011
[testenv]
1112
# Install wheels instead of source distributions for faster execution.

0 commit comments

Comments
 (0)