Skip to content

Commit

Permalink
ci(pre-commit): Ignore commit title length in gitlint config, validat…
Browse files Browse the repository at this point in the history
…e in PR title instead
  • Loading branch information
gracedo committed Jul 26, 2023
1 parent d5db6b4 commit ec3597b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/lint-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ on:
- opened
- edited
- synchronize
- reopened
pull_request:
types:
- opened
- edited
- synchronize
- reopened

jobs:
main:
Expand All @@ -15,3 +22,8 @@ jobs:
- uses: amannn/action-semantic-pull-request@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: deepakputhraya/action-pr-title@master
with:
max_length: 72 # Max length of PR title
github_token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitlint
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[general]
contrib=contrib-title-conventional-commits
ignore=body-is-missing
# Ignore long titles, since they will be squashed.
ignore=title-max-length

0 comments on commit ec3597b

Please sign in to comment.