From ffd2b5107ea153b7a9d8a755a12a4a1604ad8d89 Mon Sep 17 00:00:00 2001 From: aptalca <541623+aptalca@users.noreply.github.com> Date: Fri, 14 Apr 2023 11:29:01 -0400 Subject: [PATCH] combine steps --- .github/workflows/issue-pr-tracker.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/issue-pr-tracker.yml b/.github/workflows/issue-pr-tracker.yml index 5f0b81f..639de49 100644 --- a/.github/workflows/issue-pr-tracker.yml +++ b/.github/workflows/issue-pr-tracker.yml @@ -36,23 +36,14 @@ jobs: project_id: 8 resource_node_id: ${{ github.event.issue.node_id }} status_value: 'Insufficient Info' - - name: Move Closed Issues to Done + - name: Move Closed Issues and PRs to Done uses: leonsteinhaeuser/project-beta-automations@v2.1.0 - if: ${{ github.event.issue.state == 'closed' }} + if: ${{ github.event.issue.state == 'closed' || github.event.pull_request.state == 'closed' }} with: gh_token: ${{ secrets.CR_PAT }} organization: linuxserver project_id: 8 - resource_node_id: ${{ github.event.issue.node_id }} - status_value: 'Done' - - name: Move Closed PRs to Done - uses: leonsteinhaeuser/project-beta-automations@v2.1.0 - if: ${{ github.event.pull_request.state == 'closed' }} - with: - gh_token: ${{ secrets.CR_PAT }} - organization: linuxserver - project_id: 8 - resource_node_id: ${{ github.event.pull_request.node_id }} + resource_node_id: ${{ github.event.issue.node_id || github.event.pull_request.node_id }} status_value: 'Done' - name: Add Open PRs Without Review Requests uses: leonsteinhaeuser/project-beta-automations@v2.1.0