Skip to content

Commit 50c725b

Browse files
committed
fix(actions): exclude certain bots
1 parent 49fd78a commit 50c725b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/enforce-pr-template.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,21 @@ jobs:
4747
4848
const author = pr.user.login;
4949
50+
const skipAuthors = [
51+
'renovate[bot]',
52+
'renovate-bot',
53+
'dependabot[bot]',
54+
'github-actions[bot]',
55+
'github-copilot[bot]',
56+
'copilot[bot]',
57+
'copilot'
58+
];
59+
60+
if (skipAuthors.includes(author)) {
61+
core.info(`Author ${author} is in skip list; skipping enforcement.`);
62+
return;
63+
}
64+
5065
// 2) Check org membership
5166
let isMember = false;
5267
try {

0 commit comments

Comments
 (0)