A queued pull says "waiting on main"
A pull whose check is still queued while its base branch is red is not stuck on its own change; it waits for main. Both doors say so.
Use
- Web: open the pull's page (
/<owner>/<repo>/pulls/<n>). Where the check status sits, the line reads "waiting on main: main is red at <short commit>." - Terminal: open the same pull (
ctrl+k, Pulls, pick the pull). The check line carries the same words. - The line shows only while the check is
queued, main is red on the pull's base branch and no limit stopped main. The page draws it without the failure mark: the pull has not failed. A running, passed or failed check, a green main or another base shows nothing new.
How it works
mainLineForinsrc/checks/red_main_line.tschooses the line (failed:redMainLine, queued:waitingOnMainLine);src/web/pages/pull.tsandsrc/tui/screens/pull.tsboth call it, so the two doors cannot differ.- Tests:
test/pull-page-red-main.test.ts,test/tui-pull-red-main.test.ts.