From 510686812dc0986fde4546eec4935452a2be22fb Mon Sep 17 00:00:00 2001 From: efb4f5ff-1298-471a-8973-3d47447115dc <73130443+efb4f5ff-1298-471a-8973-3d47447115dc@users.noreply.github.com> Date: Mon, 10 Oct 2022 14:00:42 +0000 Subject: [PATCH] Update report.yml (#2704) --- .github/workflows/report.yml | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/.github/workflows/report.yml b/.github/workflows/report.yml index c66c8915..34cb3099 100644 --- a/.github/workflows/report.yml +++ b/.github/workflows/report.yml @@ -4,7 +4,7 @@ name: Project Board Automation on: issues: - types: [labeled, unlabeled, closed, deleted] + types: [closed, deleted, reopened, opened] jobs: assign-issues-to-projects: @@ -14,37 +14,57 @@ jobs: # For bug reports - name: New bug issue uses: alex-page/github-project-automation-plus@v0.8.1 - if: github.event.action == 'labeled' && contains(github.event.issue.labels.*.name, 'bug') + if: contains(github.event.issue.labels.*.name, 'bug') && github.event.action == 'opened' with: project: Bug Reports column: To assign repo-token: ${{ secrets.PUSH_TOKEN }} action: update - - - name: Bug label removed + + - name: Bug issue closed uses: alex-page/github-project-automation-plus@v0.8.1 - if: github.event.action == 'unlabeled' || github.event.action == 'closed' || github.event.action == 'deleted' + if: github.event.action == 'closed' || github.event.action == 'deleted' with: action: delete project: Bug Reports column: To assign repo-token: ${{ secrets.PUSH_TOKEN }} + + - name: Bug issue reopened + uses: alex-page/github-project-automation-plus@v0.8.1 + if: contains(github.event.issue.labels.*.name, 'bug') && github.event.action == 'reopened' + with: + project: Bug Reports + column: To assign + repo-token: ${{ secrets.PUSH_TOKEN }} + action: update # For feature requests - name: New feature issue uses: alex-page/github-project-automation-plus@v0.8.1 - if: github.event.action == 'labeled' && contains(github.event.issue.labels.*.name, 'enhancement') + if: contains(github.event.issue.labels.*.name, 'enhancement') && github.event.action == 'opened' with: project: Feature Requests column: To assign repo-token: ${{ secrets.PUSH_TOKEN }} action: update - - name: Feature request label removed + - name: Feature request issue closed uses: alex-page/github-project-automation-plus@v0.8.1 - if: github.event.action == 'unlabeled' || github.event.action == 'closed' || github.event.action == 'deleted' + if: github.event.action == 'closed' || github.event.action == 'deleted' with: action: delete project: Feature Requests column: To assign repo-token: ${{ secrets.PUSH_TOKEN }} + + - name: Feature request issue reopened + uses: alex-page/github-project-automation-plus@v0.8.1 + if: contains(github.event.issue.labels.*.name, 'enhancement') && github.event.action == 'reopened' + with: + project: Feature Requests + column: To assign + repo-token: ${{ secrets.PUSH_TOKEN }} + action: update + +