Skip to content

Commit 86b574e

Browse files
committed
ci(check-pr): allow dependabot commit messages mismatch
1 parent 4e4fcd8 commit 86b574e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/check-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
echo -n 'Commits: '
2020
echo "${commits_json}" | jq '.'
2121
commit_count="$(echo "${commits_json}" | jq -r 'length')"
22-
# Check single commit
23-
if [ "${commit_count}" -eq 1 ] ; then
22+
# Check first commit message (except for dependabot who is inconsistent)
23+
if [ "${commit_count}" -eq 1 ] && [ "${GITHUB_ACTOR}" != 'dependabot[bot]' ] ; then
2424
commit_title="$(echo "${commits_json}" | jq -r '.[0].commit.message' | head -n 1)"
2525
echo "Commit title: ${commit_title}"
2626
if [[ "${commit_title}" != "${PR_TITLE}" ]] ; then

0 commit comments

Comments
 (0)