feat(ci): expose last failed batch draft PR from queue-info#1591
Draft
sileht wants to merge 1 commit into
Draft
Conversation
Contributor
Merge Protections🔴 2 of 5 protections blocking · waiting on 👀 reviews and 🙋 you
🔴 👀 Review RequirementsWaiting for
This rule is failing.
🔴 🔎 ReviewsWaiting for
This rule is failing.
|
jd
previously approved these changes
Jun 13, 2026
Contributor
|
@sileht this pull request is now in conflict 😩 |
`mergify ci queue-info` prints the merge-queue note payload as JSON and appends it to `$GITHUB_OUTPUT` as `queue_metadata`. A workflow that only wants the most recent failed batch's draft PR number had to parse that JSON and dig into `previous_failed_batches[-1].draft_pr_number`. Add a second GHA output, `last_failed_draft_pr`, written next to `queue_metadata`. `previous_failed_batches` is ordered oldest→newest so the last element is the most recent; the value is that batch's `draft_pr_number` as a plain single line, empty when the field is absent or empty (falsy in a workflow `if:`). Single-line `key=value` format matches the existing `test_results_upload` output in `junit-process` — the value is numeric so no heredoc is needed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Change-Id: I7fe971fe6ccfbb0eb6225e22bc12af4a3306b6fb
894be5a to
2616909
Compare
Member
Author
Revision history
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mergify ci queue-infoprints the merge-queue note payload as JSON andappends it to
$GITHUB_OUTPUTasqueue_metadata. A workflow that onlywants the most recent failed batch's draft PR number had to parse that
JSON and dig into
previous_failed_batches[-1].draft_pr_number.Add a second GHA output,
last_failed_draft_pr, written next toqueue_metadata.previous_failed_batchesis ordered oldest→newest sothe last element is the most recent; the value is that batch's
draft_pr_numberas a plain single line, empty when the field is absentor empty (falsy in a workflow
if:).Single-line
key=valueformat matches the existingtest_results_uploadoutput in
junit-process— the value is numeric so no heredoc is needed.Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com