From d90d73145a3cb481f874e2c4e8c286945775e5a4 Mon Sep 17 00:00:00 2001 From: Nara Kasbergen Kwon <855115+xiehan@users.noreply.github.com> Date: Wed, 18 Oct 2023 16:00:04 +0200 Subject: [PATCH] chore: reverse logic in autoclose action Turns out I wrote the reverse if statement of what I actually intended. Fun! --- src/auto-close-community-issues.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auto-close-community-issues.ts b/src/auto-close-community-issues.ts index 288b7c26..e7d8d85c 100644 --- a/src/auto-close-community-issues.ts +++ b/src/auto-close-community-issues.ts @@ -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", @@ -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",