merge queue: checking main (346ae9c) and #1758 together - #1764
Closed
mergify[bot] wants to merge 2 commits into
Closed
merge queue: checking main (346ae9c) and #1758 together#1764mergify[bot] wants to merge 2 commits into
mergify[bot] wants to merge 2 commits into
Conversation
The activity log (GET /v1/repos/.../logs) carries every event type the engine records — the action.queue.* family, the workflow actions, ci_insights.*, command.* — behind a contract with sharp edges that cost #1747 ~700 lines to pin for a single lookup: a silent `received_from = received_to - 1 day` default that makes a pull request dequeued last week read exactly like one never queued, a raw 422 on ranges over 93 days while retention is 90, opaque-cursor pagination, and unstated ordering. Own that contract once, in a new `mergify-events` crate, so nothing above it thinks about the traps: - **The window is always explicit.** `Window` carries both bounds and every request sends them; the silent 1-day default is unreachable. - **The 93-day cap is a typed error.** `Window` refuses to construct a range the API would 422 on, and "everything retained" is spelled `Window::retained` — the widest useful window has a name. - **Pagination is followed to completion** via the RFC 5988 `Link` cursors (new `Client::get_page` in mergify-core, which extracts only the cursor from the rel="next" target so a server cannot rewrite the caller's query), with a same-cursor loop guard. - **Ordering is guaranteed newest-first** by the client after collecting — a promise of the crate, not an observation about today's server. - **Unknown fields pass through verbatim.** An `Event` keeps the raw API object untouched next to a decoded envelope of the fields every event shares, so a newer engine cannot break an older CLI and `--json` republishes Mergify's contract, not this crate's. Nothing consumes the crate yet: the next two changes port `queue show`'s last-leave fallback onto it (so the contract has one home) and add `mergify events`. Part of MRGFY-8363. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Change-Id: I1f15266ac6680c63d95dddeec34978ad4edf0a50
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.
🎉 This pull request has been checked successfully and will be merged soon. 🎉
Branch main (346ae9c) and #1758 are queued together for merge.
This pull request has been created by Mergify to check the mergeability of #1758.
You don't need to do anything. Mergify will close this pull request automatically when it is complete.
Required conditions of queue rule
defaultfor merge:github-review-approved[🛡 GitHub branch protection]github-review-approved[🛡 GitHub repository ruleset ruleRequire pull request for default branch]Enforce conventional commit]:title ~= ^(fix|feat|internal|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?!?:👀 Review Requirements]:#approved-reviews-by>=2author = dependabot[bot]author = mergify-ci-botauthor = renovate[bot]📕 PR description]:body ~= (?ms:.{48,})🔎 Reviews]:#changes-requested-reviews-by = 0#review-requested = 0#review-threads-unresolved = 0🤖 Continuous Integration]:check-success=ci-gateRequired conditions to stay in the queue:
base=maingithub-review-approved[🛡 GitHub branch protection]github-review-approved[🛡 GitHub repository ruleset ruleRequire pull request for default branch]label!=manual mergeEnforce conventional commit]:title ~= ^(fix|feat|internal|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?!?:👀 Review Requirements]:#approved-reviews-by>=2author = dependabot[bot]author = mergify-ci-botauthor = renovate[bot]📕 PR description]:body ~= (?ms:.{48,})🔎 Reviews]:#changes-requested-reviews-by = 0#review-requested = 0#review-threads-unresolved = 0🤖 Continuous Integration]:check-success=ci-gate