From 6467bdeed5d8abe62be4fc581a07f96528e3bd5d Mon Sep 17 00:00:00 2001 From: Paul Bellamy Date: Thu, 27 Apr 2023 16:28:11 +0100 Subject: [PATCH] Update completed sprint on issue/pr closed --- ...pdate-completed-sprint-on-issue-closed.yml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/update-completed-sprint-on-issue-closed.yml diff --git a/.github/workflows/update-completed-sprint-on-issue-closed.yml b/.github/workflows/update-completed-sprint-on-issue-closed.yml new file mode 100644 index 0000000000..8ca1cf26e7 --- /dev/null +++ b/.github/workflows/update-completed-sprint-on-issue-closed.yml @@ -0,0 +1,25 @@ +name: Update CompletedSprint on Issue Closed + +on: + issues: + types: [closed] + pull_request: + types: [closed] + +jobs: + update-completed-sprint: + runs-on: ubuntu-latest + steps: + - name: Generate token + id: generate_token + uses: tibdex/github-app-token@v1 + with: + app_id: ${{ secrets.GH_PROJECT_MANAGEMENT_APP_ID }} + private_key: ${{ secrets.GH_PROJECT_MANAGEMENT_APP_PEM }} + - name: Update CompletedSprint on Issue Closed + id: update_completedsprint_on_issue_closed + uses: stellar/actions/update-completed-sprint-on-issue-closed@main + with: + project_name: "Platform Scrum" + field_name: "CompletedSprint" + project_token: ${{ steps.generate_token.outputs.token }}