mirror of
https://github.com/esphome/esphome.git
synced 2026-05-25 18:47:56 +08:00
[ci] pr-title-check: skip all bot authors, not just dependabot (#16453)
This commit is contained in:
@@ -29,10 +29,11 @@ jobs:
|
|||||||
} = require('./.github/scripts/detect-tags.js');
|
} = require('./.github/scripts/detect-tags.js');
|
||||||
|
|
||||||
const title = context.payload.pull_request.title;
|
const title = context.payload.pull_request.title;
|
||||||
const author = context.payload.pull_request.user.login;
|
const user = context.payload.pull_request.user;
|
||||||
|
|
||||||
// Skip bot PRs (e.g. dependabot) - they have their own title format
|
// Skip bot PRs (e.g. dependabot, esphome[bot] device-class sync) -
|
||||||
if (author === 'dependabot[bot]') {
|
// they have their own title formats.
|
||||||
|
if (user.type === 'Bot') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user