We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5668821 commit 2501d66Copy full SHA for 2501d66
.github/workflows/gitlint.yaml
@@ -0,0 +1,31 @@
1
+name: GitLint
2
+
3
+on:
4
+ pull_request
5
6
+jobs:
7
+ gitlint:
8
+ runs-on: ubuntu-latest
9
+ name: Run gitlint against all commits in a PR
10
+ steps:
11
12
+ - name: Install python dependencies
13
+ run: |
14
+ pip3 install gitlint
15
16
+ - name: Checkout the code
17
+ uses: actions/checkout@v4
18
+ with:
19
+ ref: ${{ github.event.pull_request.head.sha }}
20
+ fetch-depth: 0
21
22
+ - name: Setup Git (pull request)
23
24
+ git checkout -b this_pr
25
26
+ - name: Run gitlint
27
+ if: ${{ github.base_ref }}
28
+ env:
29
+ BASE_REF: ${{ github.base_ref }}
30
31
+ gitlint --commits origin/${BASE_REF}..this_pr
0 commit comments