Skip to content

Commit

Permalink
chore(ci): prevent PRs by Dependabot from auto-closing (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiehan authored Jan 6, 2025
1 parent 5ba8902 commit 18433cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/auto-close-community-issues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class AutoCloseCommunityIssues {
contents: JobPermission.READ,
pullRequests: JobPermission.WRITE,
},
if: `github.event.pull_request.user.login != 'team-tf-cdk' && !contains(${maintainerStatuses}, github.event.pull_request.author_association)`,
if: `github.event.pull_request.user.login != 'team-tf-cdk' && github.actor != 'dependabot[bot]' && !contains(${maintainerStatuses}, github.event.pull_request.author_association)`,
steps: [
{
name: "Checkout",
Expand Down
10 changes: 5 additions & 5 deletions test/__snapshots__/index.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 18433cb

Please sign in to comment.