From a0b408711e4ea8a8c038d561a1eb7ca1bdd0633a Mon Sep 17 00:00:00 2001 From: Phil-NHS Date: Mon, 1 Sep 2025 15:22:16 +0100 Subject: [PATCH 1/2] 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 From 940430de3031e498a617f73c11728ca404969d94 Mon Sep 17 00:00:00 2001 From: Phil-NHS Date: Mon, 1 Sep 2025 15:45:13 +0100 Subject: [PATCH 2/2] chore(depend): title getting --- .../automerge-dependabot-prs-into-collected-branch.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/automerge-dependabot-prs-into-collected-branch.yml b/.github/workflows/automerge-dependabot-prs-into-collected-branch.yml index d84eaa6..8386653 100644 --- a/.github/workflows/automerge-dependabot-prs-into-collected-branch.yml +++ b/.github/workflows/automerge-dependabot-prs-into-collected-branch.yml @@ -66,8 +66,12 @@ jobs: - name: extract update type id: extract + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | + echo "get pr number" pr_number=${{ github.event.check_suite.pull_requests[0].number }} + echo "PR title: $pr_number" # pr_title="${{ github.event.pull_request.title }}" pr_title=$(gh pr view "$pr_number" --json title --jq .title) echo "PR title: $pr_title"