Skip to content

Commit

Permalink
chore: reverse logic in autoclose action
Browse files Browse the repository at this point in the history
Turns out I wrote the reverse if statement of what I actually intended. Fun!
  • Loading branch information
xiehan authored Oct 18, 2023
1 parent d2d3e91 commit d90d731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/auto-close-community-issues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class AutoCloseCommunityIssues {
permissions: {
issues: JobPermission.WRITE,
},
if: `github.event.issue.user.login == 'team-tf-cdk' || contains(${maintainerStatuses}, github.event.issue.author_association)`,
if: `github.event.issue.user.login != 'team-tf-cdk' && !contains(${maintainerStatuses}, github.event.issue.author_association)`,
steps: [
{
name: "Checkout",
Expand Down Expand Up @@ -85,7 +85,7 @@ export class AutoCloseCommunityIssues {
permissions: {
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' && !contains(${maintainerStatuses}, github.event.pull_request.author_association)`,
steps: [
{
name: "Checkout",
Expand Down

0 comments on commit d90d731

Please sign in to comment.