From 7c23fd63e242e71704c9001cb9d6ff18a2a7a35f Mon Sep 17 00:00:00 2001 From: yardasol Date: Thu, 3 Feb 2022 13:06:31 -0600 Subject: [PATCH] remove unnecessary if statements in the workflow --- .github/workflows/auto-labels.yml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/.github/workflows/auto-labels.yml b/.github/workflows/auto-labels.yml index 2006bbe4f..45eaf09a4 100644 --- a/.github/workflows/auto-labels.yml +++ b/.github/workflows/auto-labels.yml @@ -4,7 +4,7 @@ on: issues: types: [closed] pull_request: - types: [closed, review_requested] + types: [closed] jobs: # job for issue events @@ -18,7 +18,6 @@ jobs: steps: - uses: actions/checkout@v2 - name: Remove Priority and Status labels - if: github.event.issue.action == "closed" run: | id=${{ github.event.issue.number }} gh issue edit $id --remove-label "Priority:*" @@ -26,9 +25,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Update Priority/Status labels on linked PRs - - # job for pr events auto-labels-pr: @@ -41,19 +37,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Remove Priority and Status labels - if: github.event.pull_request.action == "closed" run: | id=${{ github.event.pull_reqeust.number }} gh pr edit $id --remove-label "Priority:*" gh pr edit $id --remove-label "Status:*" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Update linked issues - if: github.event.pull_request.action == "review_requested" - run: | - id=${{ github.event.pull_request.number }} - gh pr edit $id --remove-label "Status:*" - gh pr edit $id --add-label "Status:In Review" - -