From 9eb799825e94212b7dbcf8b6583a4098cebb7032 Mon Sep 17 00:00:00 2001 From: David Young Date: Wed, 28 Sep 2022 14:54:21 +1300 Subject: [PATCH] 3rd time lucky! Signed-off-by: David Young --- .../workflows/check_pr_tasks_completed.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/check_pr_tasks_completed.yml diff --git a/.github/workflows/check_pr_tasks_completed.yml b/.github/workflows/check_pr_tasks_completed.yml new file mode 100644 index 0000000..0fb6080 --- /dev/null +++ b/.github/workflows/check_pr_tasks_completed.yml @@ -0,0 +1,26 @@ +name: 'Confirm tasks are completed' +on: + pull_request: + types: [opened, edited, synchronize, reopened] + +jobs: + task-check: + runs-on: ubuntu-latest + permissions: + pull-requests: write + checks: write + steps: + - name: Get GitHub API token + id: get-app-token + uses: getsentry/action-github-app-token@v1 + with: + app_id: ${{ secrets.PR_TASK_COMPLETED_CHECKER_APP_ID }} + private_key: ${{ secrets.PR_TASK_COMPLETED_CHECKER_APP_PRIVATE_KEY }} + + - uses: Shopify/task-list-checker@main + with: + github-token: ${{ steps.get-app-token.outputs.token }} + readme-url: https://geek-cookbook.funkypenguin.co.nz/community/contribute/#contributing-recipes + + +