git-commit-guard 0.14.0__tar.gz → 0.14.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {git_commit_guard-0.14.0 → git_commit_guard-0.14.1}/.github/workflows/lint-commits.yml +1 -1
- {git_commit_guard-0.14.0 → git_commit_guard-0.14.1}/PKG-INFO +8 -9
- {git_commit_guard-0.14.0 → git_commit_guard-0.14.1}/README.md +7 -8
- {git_commit_guard-0.14.0 → git_commit_guard-0.14.1}/action.yml +5 -0
- {git_commit_guard-0.14.0 → git_commit_guard-0.14.1}/.github/workflows/lint-md.yml +0 -0
- {git_commit_guard-0.14.0 → git_commit_guard-0.14.1}/.github/workflows/lint-python.yml +0 -0
- {git_commit_guard-0.14.0 → git_commit_guard-0.14.1}/.github/workflows/release.yml +0 -0
- {git_commit_guard-0.14.0 → git_commit_guard-0.14.1}/.github/workflows/test.yml +0 -0
- {git_commit_guard-0.14.0 → git_commit_guard-0.14.1}/.gitignore +0 -0
- {git_commit_guard-0.14.0 → git_commit_guard-0.14.1}/.pre-commit-hooks.yaml +0 -0
- {git_commit_guard-0.14.0 → git_commit_guard-0.14.1}/.python-version +0 -0
- {git_commit_guard-0.14.0 → git_commit_guard-0.14.1}/LICENSE +0 -0
- {git_commit_guard-0.14.0 → git_commit_guard-0.14.1}/pyproject.toml +0 -0
- {git_commit_guard-0.14.0 → git_commit_guard-0.14.1}/ruff.toml +0 -0
- {git_commit_guard-0.14.0 → git_commit_guard-0.14.1}/src/git_commit_guard/__init__.py +0 -0
- {git_commit_guard-0.14.0 → git_commit_guard-0.14.1}/tests/__init__.py +0 -0
- {git_commit_guard-0.14.0 → git_commit_guard-0.14.1}/tests/test_git_commit_guard.py +0 -0
- {git_commit_guard-0.14.0 → git_commit_guard-0.14.1}/uv.lock +0 -0
|
@@ -22,7 +22,7 @@ jobs:
|
|
|
22
22
|
key: nltk-averaged-perceptron-tagger-punkt
|
|
23
23
|
- name: Lint commits
|
|
24
24
|
# yamllint disable-line rule:line-length
|
|
25
|
-
uses: benner/commit-guard@
|
|
25
|
+
uses: benner/commit-guard@ccb4e549f589787e294199688f20b5cb5fcac1e1 # v0.14.0
|
|
26
26
|
with:
|
|
27
27
|
range: origin/${{ github.base_ref }}..HEAD
|
|
28
28
|
disable: signature
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: git-commit-guard
|
|
3
|
-
Version: 0.14.
|
|
3
|
+
Version: 0.14.1
|
|
4
4
|
Summary: Opinionated conventional commit message linter with imperative mood detection
|
|
5
5
|
Project-URL: Homepage, https://github.com/benner/commit-guard
|
|
6
6
|
Project-URL: Repository, https://github.com/benner/commit-guard
|
|
@@ -31,10 +31,9 @@ imperative verb.
|
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
33
|
$ commit-guard
|
|
34
|
-
✗ subject does not match 'type(scope): description':
|
|
35
|
-
|
|
36
|
-
✗
|
|
37
|
-
✗ commit is not signed (GPG/SSH)
|
|
34
|
+
✗ [subject] subject does not match 'type(scope): description': WIP
|
|
35
|
+
✗ [signed-off] missing 'Signed-off-by' trailer
|
|
36
|
+
✗ [signature] commit is not signed (GPG/SSH)
|
|
38
37
|
```
|
|
39
38
|
|
|
40
39
|
## Installation
|
|
@@ -258,7 +257,7 @@ steps:
|
|
|
258
257
|
- uses: actions/checkout@v4
|
|
259
258
|
with:
|
|
260
259
|
fetch-depth: 0
|
|
261
|
-
- uses: benner/commit-guard@v0.14.
|
|
260
|
+
- uses: benner/commit-guard@v0.14.1
|
|
262
261
|
```
|
|
263
262
|
|
|
264
263
|
Check all commits in a pull request:
|
|
@@ -274,7 +273,7 @@ jobs:
|
|
|
274
273
|
- uses: actions/checkout@v4
|
|
275
274
|
with:
|
|
276
275
|
fetch-depth: 0
|
|
277
|
-
- uses: benner/commit-guard@v0.14.
|
|
276
|
+
- uses: benner/commit-guard@v0.14.1
|
|
278
277
|
with:
|
|
279
278
|
range: ${{ env.PR_BASE }}..${{ env.PR_HEAD }}
|
|
280
279
|
```
|
|
@@ -292,7 +291,7 @@ jobs:
|
|
|
292
291
|
- uses: actions/checkout@v4
|
|
293
292
|
with:
|
|
294
293
|
fetch-depth: 0
|
|
295
|
-
- uses: benner/commit-guard@v0.14.
|
|
294
|
+
- uses: benner/commit-guard@v0.14.1
|
|
296
295
|
with:
|
|
297
296
|
range: ${{ env.PR_BASE }}..${{ env.PR_HEAD }}
|
|
298
297
|
disable: signed-off,signature
|
|
@@ -311,7 +310,7 @@ Add to your `.pre-commit-config.yaml`:
|
|
|
311
310
|
---
|
|
312
311
|
repos:
|
|
313
312
|
- repo: https://github.com/benner/commit-guard
|
|
314
|
-
rev: v0.14.
|
|
313
|
+
rev: v0.14.1
|
|
315
314
|
hooks:
|
|
316
315
|
- id: commit-guard
|
|
317
316
|
- id: commit-guard-signature
|
|
@@ -10,10 +10,9 @@ imperative verb.
|
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
$ commit-guard
|
|
13
|
-
✗ subject does not match 'type(scope): description':
|
|
14
|
-
|
|
15
|
-
✗
|
|
16
|
-
✗ commit is not signed (GPG/SSH)
|
|
13
|
+
✗ [subject] subject does not match 'type(scope): description': WIP
|
|
14
|
+
✗ [signed-off] missing 'Signed-off-by' trailer
|
|
15
|
+
✗ [signature] commit is not signed (GPG/SSH)
|
|
17
16
|
```
|
|
18
17
|
|
|
19
18
|
## Installation
|
|
@@ -237,7 +236,7 @@ steps:
|
|
|
237
236
|
- uses: actions/checkout@v4
|
|
238
237
|
with:
|
|
239
238
|
fetch-depth: 0
|
|
240
|
-
- uses: benner/commit-guard@v0.14.
|
|
239
|
+
- uses: benner/commit-guard@v0.14.1
|
|
241
240
|
```
|
|
242
241
|
|
|
243
242
|
Check all commits in a pull request:
|
|
@@ -253,7 +252,7 @@ jobs:
|
|
|
253
252
|
- uses: actions/checkout@v4
|
|
254
253
|
with:
|
|
255
254
|
fetch-depth: 0
|
|
256
|
-
- uses: benner/commit-guard@v0.14.
|
|
255
|
+
- uses: benner/commit-guard@v0.14.1
|
|
257
256
|
with:
|
|
258
257
|
range: ${{ env.PR_BASE }}..${{ env.PR_HEAD }}
|
|
259
258
|
```
|
|
@@ -271,7 +270,7 @@ jobs:
|
|
|
271
270
|
- uses: actions/checkout@v4
|
|
272
271
|
with:
|
|
273
272
|
fetch-depth: 0
|
|
274
|
-
- uses: benner/commit-guard@v0.14.
|
|
273
|
+
- uses: benner/commit-guard@v0.14.1
|
|
275
274
|
with:
|
|
276
275
|
range: ${{ env.PR_BASE }}..${{ env.PR_HEAD }}
|
|
277
276
|
disable: signed-off,signature
|
|
@@ -290,7 +289,7 @@ Add to your `.pre-commit-config.yaml`:
|
|
|
290
289
|
---
|
|
291
290
|
repos:
|
|
292
291
|
- repo: https://github.com/benner/commit-guard
|
|
293
|
-
rev: v0.14.
|
|
292
|
+
rev: v0.14.1
|
|
294
293
|
hooks:
|
|
295
294
|
- id: commit-guard
|
|
296
295
|
- id: commit-guard-signature
|
|
@@ -42,6 +42,9 @@ inputs:
|
|
|
42
42
|
description: Include merge commits when checking a range
|
|
43
43
|
required: false
|
|
44
44
|
default: 'false'
|
|
45
|
+
require-trailer:
|
|
46
|
+
description: Comma-separated list of required trailers (e.g. Closes,Reviewed-by)
|
|
47
|
+
required: false
|
|
45
48
|
runs:
|
|
46
49
|
using: composite
|
|
47
50
|
steps:
|
|
@@ -66,6 +69,7 @@ runs:
|
|
|
66
69
|
CG_MIN_DESCRIPTION_LENGTH: ${{ inputs.min-description-length }}
|
|
67
70
|
CG_ALLOW_EMPTY: ${{ inputs.allow-empty }}
|
|
68
71
|
CG_INCLUDE_MERGES: ${{ inputs.include-merges }}
|
|
72
|
+
CG_REQUIRE_TRAILER: ${{ inputs.require-trailer }}
|
|
69
73
|
run: |
|
|
70
74
|
ARGS=()
|
|
71
75
|
[[ -n "$CG_REV" ]] && ARGS+=("$CG_REV")
|
|
@@ -81,5 +85,6 @@ runs:
|
|
|
81
85
|
ARGS+=(--min-description-length "$CG_MIN_DESCRIPTION_LENGTH")
|
|
82
86
|
[[ "$CG_ALLOW_EMPTY" == "true" ]] && ARGS+=(--allow-empty)
|
|
83
87
|
[[ "$CG_INCLUDE_MERGES" == "true" ]] && ARGS+=(--include-merges)
|
|
88
|
+
[[ -n "$CG_REQUIRE_TRAILER" ]] && ARGS+=(--require-trailer "$CG_REQUIRE_TRAILER")
|
|
84
89
|
commit-guard "${ARGS[@]}"
|
|
85
90
|
shell: bash
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|