From a0887783f8ef57b091db6c8a0074360472da9f9c Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Thu, 7 May 2026 14:23:43 -0700 Subject: [PATCH] fix allowing everyone to close issues (#4454) * Update issue-slash-commands.yaml * Update issue-slash-commands.yaml * Update issue-slash-commands.yaml --- .github/workflows/issue-slash-commands.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/issue-slash-commands.yaml b/.github/workflows/issue-slash-commands.yaml index 6e299e7a..dca69d84 100644 --- a/.github/workflows/issue-slash-commands.yaml +++ b/.github/workflows/issue-slash-commands.yaml @@ -67,7 +67,7 @@ jobs: id: check_user if: env.command == 'true' run: | - ALLOWED_USERS=("ChrisTitusTech" "og-mrk" "Marterich" "MyDrift-user" "Real-MullaC" "CodingWonders" "GabiNun") + ALLOWED_USERS=("ChrisTitusTech" "og-mrk" "Marterich" "MyDrift-user" "Real-MullaC" "CodingWonders" "GabiNun2" "FluffyPunk") if [[ " ${ALLOWED_USERS[@]} " =~ " ${{ github.event.comment.user.login }} " ]]; then echo "user=true" >> $GITHUB_ENV else @@ -75,7 +75,7 @@ jobs: fi - name: Close issue - if: env.close_command == 'true' + if: env.user == 'true' && env.close_command == 'true' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ISSUE_NUMBER: ${{ github.event.issue.number }} @@ -88,7 +88,7 @@ jobs: fi - name: Reopen issue - if: env.reopen_command == 'true' + if: env.user == 'true' && env.reopen_command == 'true' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ISSUE_NUMBER: ${{ github.event.issue.number }} @@ -97,7 +97,7 @@ jobs: gh issue reopen $ISSUE_NUMBER --repo ${{ github.repository }} - name: Label issue - if: env.label_command == 'true' + if: env.user == 'true' && env.label_command == 'true' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ISSUE_NUMBER: ${{ github.event.issue.number }} @@ -106,7 +106,7 @@ jobs: gh issue edit $ISSUE_NUMBER --repo ${{ github.repository }} --add-label "${{ env.label_name }}" - name: Remove labels - if: env.unlabel_command == 'true' + if: env.user == 'true' && env.unlabel_command == 'true' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ISSUE_NUMBER: ${{ github.event.issue.number }}