Skip to content

Commit 40ead16

Browse files
Update Managed Files (#342)
1 parent fcdf877 commit 40ead16

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/dependabot-cursor-review.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ permissions:
2929

3030
jobs:
3131
dependabot-review:
32-
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]')
32+
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && (github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'renovate[bot]'))
3333
runs-on: ubuntu-latest
3434
timeout-minutes: 15
3535
steps:
@@ -60,8 +60,9 @@ jobs:
6060
core.setFailed('Could not resolve target pull request context.');
6161
return;
6262
}
63-
if (pr.user?.login !== 'dependabot[bot]') {
64-
core.setFailed(`Target PR #${pr.number} is not opened by dependabot[bot].`);
63+
const allowedBots = ['dependabot[bot]', 'renovate[bot]'];
64+
if (context.eventName !== 'workflow_dispatch' && !allowedBots.includes(pr.user?.login)) {
65+
core.setFailed(`Target PR #${pr.number} is not opened by an allowed bot. Author: ${pr.user?.login}`);
6566
return;
6667
}
6768

0 commit comments

Comments
 (0)