From aefa60a4f81f5280a73edc930355c44fcb8b6101 Mon Sep 17 00:00:00 2001 From: Dan Philibin Date: Wed, 18 Sep 2024 15:28:59 -0700 Subject: [PATCH] pr alerts: use 'merged' instead of 'closed' --- examples/github-pr-alerts-workflow/workflow.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/github-pr-alerts-workflow/workflow.yml b/examples/github-pr-alerts-workflow/workflow.yml index 776495f..18cd2d2 100644 --- a/examples/github-pr-alerts-workflow/workflow.yml +++ b/examples/github-pr-alerts-workflow/workflow.yml @@ -35,6 +35,8 @@ jobs: ACTION="ready for review" elif [[ "${ACTION}" == "reopened" ]]; then ACTION="reopened" + elif [[ "${ACTION}" == "closed" && "${{ github.event.pull_request.merged }}" == "true" ]]; then + ACTION="merged" fi ESCAPED_TITLE=$(echo '${{ github.event.pull_request.title }}' | jq -rRs '.')