From 0b700d20376dfb7c44dbc8f49f889e5ce7f0f943 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Mon, 29 Jan 2024 02:10:41 +0100 Subject: [PATCH] Update PR summary for `review_requested` (#70) --- .github/workflows/format.yml | 3 ++- action.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 3316a818..d9e55760 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -9,7 +9,8 @@ on: branches: [main, master] pull_request: branches: [main, master] - types: [opened, closed, synchronize] + # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request + types: [opened, closed, synchronize, review_requested] jobs: format: diff --git a/action.yml b/action.yml index 352c03e2..95fff10f 100644 --- a/action.yml +++ b/action.yml @@ -153,7 +153,7 @@ runs: # PR Summary ------------------------------------------------------------------------------------------------------- - name: PR Summary - if: inputs.summary == 'true' && (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && (github.event.action == 'opened' || github.event.action == 'closed') + if: inputs.summary == 'true' && (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.action != 'synchronize' env: REPO_NAME: ${{ github.repository }} PR_NUMBER: ${{ github.event.pull_request.number }}