From a44468fd441c9cdc7134b87bada2be2262818324 Mon Sep 17 00:00:00 2001 From: Arjen Kroezen Date: Thu, 8 Feb 2024 09:02:15 +0100 Subject: [PATCH] chore: disable PR description linting (#74) --- .conventional-commits/scripts/lint-pull-request.sh | 5 ++--- .github/workflows/conventional-commits.yml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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'