File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change 3232 - name : Run static checks
3333 run : tox -e static
3434
35- lint-commits :
36- runs-on : ubuntu-latest
37- if : ${{ github.event_name != 'push' || github.ref_name != github.event.repository.default_branch }}
38- steps :
39- - name : Dump GitHub context # Debugging why this job is running on forks/osaka.
40- env :
41- EVENT_NAME : ${{ toJson(github.event_name) }}
42- REF_NAME : ${{ toJson(github.ref_name) }}
43- GH_REPO : ${{ toJson(github.event.repository) }}
44- run : |
45- printenv EVENT_NAME
46- printenv REF_NAME
47- printenv GH_REPO
48- - uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
49- with :
50- submodules : recursive
51- fetch-depth : 0
52- - name : Setup Python
53- uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
54- with :
55- python-version : " 3.11"
56- - name : Install gitlint
57- run : pip install gitlint>=0.20.0
58- - name : Lint commits
59- run : |
60- BASE_REF="${{ github.base_ref || github.repository.default_branch }}"
61- BASE_SHA=$(git merge-base HEAD "origin/$BASE_REF")
62- echo "Linting commits from $BASE_SHA to HEAD (base ref: $BASE_REF)"
63- echo "Commits in range:"
64- git log --oneline "$BASE_SHA"..HEAD || echo "No new commits"
65- gitlint --contrib CT1 --commits "$BASE_SHA"..HEAD --ignore body-is-missing
66- echo "Conventional Commits linting PASSED!"
67-
6835 py3 :
6936 runs-on : [self-hosted-ghr, size-xl-x64]
7037 needs : static
You can’t perform that action at this time.
0 commit comments