diff --git a/.conventional-commits/scripts/lint-pull-request.sh b/.conventional-commits/scripts/lint-pull-request.sh index 30bb7af1..2346ea56 100755 --- a/.conventional-commits/scripts/lint-pull-request.sh +++ b/.conventional-commits/scripts/lint-pull-request.sh @@ -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 diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml index 770dc895..d7e53155 100644 --- a/.github/workflows/conventional-commits.yml +++ b/.github/workflows/conventional-commits.yml @@ -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'