From a0b408711e4ea8a8c038d561a1eb7ca1bdd0633a Mon Sep 17 00:00:00 2001 From: Phil-NHS Date: Mon, 1 Sep 2025 15:22:16 +0100 Subject: [PATCH] chore(cicd): title catching --- ...omerge-dependabot-prs-into-collected-branch.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/automerge-dependabot-prs-into-collected-branch.yml b/.github/workflows/automerge-dependabot-prs-into-collected-branch.yml index 782fd1c..d84eaa6 100644 --- a/.github/workflows/automerge-dependabot-prs-into-collected-branch.yml +++ b/.github/workflows/automerge-dependabot-prs-into-collected-branch.yml @@ -33,6 +33,15 @@ jobs: echo "Conclusion: ${{ github.event.check_suite.conclusion }}" echo "Target Branch: ${{ github.event.check_suite.pull_requests[0].base.ref }}" echo "PR Number: ${{ github.event.check_suite.pull_requests[0].number }}" + + - name: Dump event payload + run: | + echo "==== EVENT NAME ====" + echo "${{ github.event_name }}" + echo "==== RAW CHECK_SUITE PAYLOAD ====" + echo '${{ toJson(github.event.check_suite) }}' + echo "==== PRs in this check suite ====" + echo '${{ toJson(github.event.check_suite.pull_requests) }}' auto-merge: @@ -58,7 +67,10 @@ jobs: - name: extract update type id: extract run: | - pr_title="${{ github.event.pull_request.title }}" + pr_number=${{ github.event.check_suite.pull_requests[0].number }} + # pr_title="${{ github.event.pull_request.title }}" + pr_title=$(gh pr view "$pr_number" --json title --jq .title) + echo "PR title: $pr_title" if [[ $pr_title == *"(major)"* ]]; then echo "update_type=major" >> $GITHUB_OUTPUT else