Skip to content

Commit

Permalink
chore: disable PR description linting (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjendev authored Feb 8, 2024
1 parent 71df272 commit a44468f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .conventional-commits/scripts/lint-pull-request.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/bin/sh
set -e
PR_TITLE="$1"
PR_BODY="$2"
COMMIT_LINT_CONFIG="$3"
COMMIT_LINT_CONFIG="$2"

npm install -g @commitlint/cli@17 @commitlint/config-conventional@17

echo "$PR_TITLE\n\n$PR_BODY" | commitlint --config "$COMMIT_LINT_CONFIG" --verbose
echo "$PR_TITLE" | commitlint --config "$COMMIT_LINT_CONFIG" --verbose
2 changes: 1 addition & 1 deletion .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
- uses: actions/checkout@v4
- name: PR Linting
run: |
.conventional-commits/scripts/lint-pull-request.sh '${{ github.event.pull_request.title }}' '${{ github.event.pull_request.body }}' '${{ github.workspace }}/.conventional-commits/commitlint.pr.config.js'
.conventional-commits/scripts/lint-pull-request.sh '${{ github.event.pull_request.title }}' '${{ github.workspace }}/.conventional-commits/commitlint.pr.config.js'

0 comments on commit a44468f

Please sign in to comment.