summaryrefslogtreecommitdiff
path: root/ci/github-script/lint-commits.js
diff options
context:
space:
mode:
Diffstat (limited to 'ci/github-script/lint-commits.js')
-rw-r--r--ci/github-script/lint-commits.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/ci/github-script/lint-commits.js b/ci/github-script/lint-commits.js
index ad8f1c63ac..6f2dc540a2 100644
--- a/ci/github-script/lint-commits.js
+++ b/ci/github-script/lint-commits.js
@@ -86,6 +86,15 @@ async function checkCommitMessages({ github, context, core, repoPath }) {
return
}
+ // Skip commit lint for automated bot PRs (e.g. Dependabot)
+ const prAuthor = pr.user?.login || ''
+ if (prAuthor === 'dependabot[bot]') {
+ core.info(
+ `PR author is "${prAuthor}". Skipping commit message checks for bot PRs.`,
+ )
+ return
+ }
+
const commits = await getCommitDetailsForPR({ core, pr, repoPath })
const failures = new Set()