Skip to content

Commit 7c6af81

Browse files
committed
ci(check-pr): allow dependabot commit messages mismatch
1 parent 4b72286 commit 7c6af81

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
@@ -17,8 +17,8 @@ jobs:
1717
echo -n 'Commits: '
1818
echo "${commits_json}" | jq '.'
1919
commit_count="$(echo "${commits_json}" | jq -r 'length')"
20-
# Check single commit
21-
if [ "${commit_count}" -eq 1 ] ; then
20+
# Check first commit message (except for dependabot who is inconsistent)
21+
if [ "${commit_count}" -eq 1 ] && [ "${GITHUB_ACTOR}" != 'dependabot[bot]' ] ; then
2222
commit_title="$(echo "${commits_json}" | jq -r '.[0].commit.message' | head -n 1)"
2323
echo "Commit title: ${commit_title}"
2424
if [[ "${commit_title}" != "${PR_TITLE}" ]] ; then

0 commit comments

Comments
 (0)