From c8afd73a67e31f448545c91d4012c313ba2ebed1 Mon Sep 17 00:00:00 2001 From: Christina Or Date: Fri, 21 Apr 2023 01:08:40 -0400 Subject: [PATCH] Add GHA deleting closed and unmerged PRs from Project Board --- .github/workflows/pull-request-trigger.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/pull-request-trigger.yml b/.github/workflows/pull-request-trigger.yml index 2813aecc84..322dda1281 100644 --- a/.github/workflows/pull-request-trigger.yml +++ b/.github/workflows/pull-request-trigger.yml @@ -52,3 +52,16 @@ jobs: column: 'test-approved-by-reviewer (Automated Column, do not place items here manually)' repo-token: ${{ secrets.HACKFORLA_BOT_PA_TOKEN }} action: delete + + # Removes PRs that are closed and not merged + Delete-Closed-And-Unmerged-PRs: + runs-on: ubuntu-latest + if: ${{ github.event.pull_request.merged == false && github.event.action == 'closed' }} + steps: + - name: Delete Closed and Unmerged PRs + uses: alex-page/github-project-automation-plus@v0.8.1 + with: + project: Project Board + column: 'PR Needs review (Automated Column, do not place items here manually)' + repo-token: ${{ secrets.HACKFORLA_BOT_PA_TOKEN }} + action: delete \ No newline at end of file