Skip to content

Commit

Permalink
ci: run gitlint on PR title (#1597)
Browse files Browse the repository at this point in the history
* ci: run gitlint on PR title
* ci: remove fetch-depth from checkout action
  • Loading branch information
rhythmrx9 committed Mar 14, 2022
1 parent f7b4930 commit a4e8de7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
tool: ['isort', 'black', 'pyupgrade', 'flake8', 'bandit', 'gitlint']
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v2
with:
cache: 'pip'
Expand All @@ -34,4 +32,4 @@ jobs:
if: ${{ github.event_name == 'pull_request' && matrix.tool == 'gitlint' }}
run: |
python -m pip install --upgrade gitlint
gitlint --commits ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
echo ${{ github.event.pull_request.title }} | gitlint

0 comments on commit a4e8de7

Please sign in to comment.