Skip to content

Commit a4e8de7

Browse files
authored
ci: run gitlint on PR title (#1597)
* ci: run gitlint on PR title * ci: remove fetch-depth from checkout action
1 parent f7b4930 commit a4e8de7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/linting.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ jobs:
1515
tool: ['isort', 'black', 'pyupgrade', 'flake8', 'bandit', 'gitlint']
1616
steps:
1717
- uses: actions/checkout@v2
18-
with:
19-
fetch-depth: 0
2018
- uses: actions/setup-python@v2
2119
with:
2220
cache: 'pip'
@@ -34,4 +32,4 @@ jobs:
3432
if: ${{ github.event_name == 'pull_request' && matrix.tool == 'gitlint' }}
3533
run: |
3634
python -m pip install --upgrade gitlint
37-
gitlint --commits ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
35+
echo ${{ github.event.pull_request.title }} | gitlint

0 commit comments

Comments
 (0)