Skip to content

Commit b422aad

Browse files
committed
ci: no talk to self
1 parent 439cecc commit b422aad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/warn-master-pr.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ jobs:
1818
const { repo, owner } = context.repo;
1919
const issue_number = context.issue.number;
2020
21+
// Skip if the PR author is github-actions[bot] (automated PR)
22+
const prAuthor = context.payload.pull_request.user.login;
23+
if (prAuthor === 'github-actions[bot]') {
24+
console.log('Skipping warning for automated PR from github-actions[bot]');
25+
return;
26+
}
27+
2128
// Check if we already commented on this PR
2229
const comments = await github.rest.issues.listComments({
2330
owner,

0 commit comments

Comments
 (0)