Repository navigation
ci(mergify): resolve URL-form stack dependencies - #1604
mergify[bot] merged 1 commit into
Conversation
Resolve same-repository GitHub pull-request URLs as well as #N markers when validating queue batches. Reject cross-repository and malformed references, and preserve base-branch ownership checks. Validation: 27 focused queue, stack, and batch-validator tests passed; git diff --check passed. Change-Id: I0de76083fea4cbd21fecf93af44e2efd040af7ca
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f8cc7469d2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| /^Depends-On: (?:#([1-9]\d*)|https:\/\/github\.com\/([^/\s]+\/[^/\s]+)\/pull\/([1-9]\d*))\s*$/m.exec(body ?? ""); | ||
| if ( | ||
| !marker || | ||
| (marker[2] && marker[2].toLowerCase() !== repository.toLowerCase()) |
There was a problem hiding this comment.
Keep scanning after a foreign dependency URL
When a stack member lists an external dependency before its same-repository predecessor, such as Depends-On: https://github.com/o/other/pull/7 followed by Depends-On: #12, this check returns null for the first marker without searching for the valid second marker. Mergify explicitly supports multiple Depends-On headers, including cross-repository dependencies (Mergify documentation), and the previous shorthand-only regex skipped the URL and found #12; the changed validator therefore rejects an otherwise valid stack as having an invalid base. Scan all dependency markers and ignore nonmatching repositories rather than terminating on the first one.
Useful? React with 👍 / 👎.
Merge Queue Status
This pull request spent 1 hour 28 minutes 49 seconds in the queue, including 2 minutes 1 second running CI. Required conditions to merge
|
|
This pull request is part of a Mergify stack:
|
Resolve same-repository GitHub pull-request URLs as well as #N markers when validating queue batches. Reject cross-repository and malformed references, and preserve base-branch ownership checks.
Validation: 27 focused queue, stack, and batch-validator tests passed; git diff --check passed.