Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.

Commit fbde2bf

Browse files
committed
chore: Install Python for GitLint action
We need to do this because using `pip` with the default Python in the Ubuntu image does not work any more. Signed-off-by: Barak Korren <[email protected]>
1 parent 2869430 commit fbde2bf

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/gitlint.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818
ref: ${{ github.event.pull_request.head.sha }}
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.12'
22+
cache: 'pip'
1923
- name: Install Python dependencies
2024
run: pip install -r requirements.lock
2125
- name: Run gitlint on CI with pre-commit

.gitlint

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[general]
22
contrib=contrib-title-conventional-commits,contrib-body-requires-signed-off-by
3+
regex-style-search=True
34

45
[title-max-length]
56
line-length=72
@@ -11,5 +12,5 @@ line-length=72
1112

1213
# Bot users tends to generate invalid commits.
1314
[ignore-by-author-name]
14-
regex=(dependabot|red-hat-trusted-app-pipeline|red-hat-konflux)
15+
regex="^(dependabot|red-hat-trusted-app-pipeline|red-hat-konflux)$"
1516
ignore=all

0 commit comments

Comments
 (0)