A merge queue is enabled, but PRs sit in the queue forever. What is your design fix?
IntermediateScenarioPipeline Design & Triggers
Answer
Situation read → Required checks never report on the queue's temporary branches.
What I'd do →
- Add the trigger:
on: pull_request: merge_group: - Make sure job names in
merge_groupruns match the required check (fan-inci-ok). - Do not use
pathsfilters on that workflow; queue commits combine multiple PRs.
Why → The queue waits for required checks on gh-readonly-queue/... commits, which only merge_group produces.
Interview tip → Explain the merge queue value: it tests the combination of PRs, preventing "green PR, red main".
More on Pipeline Design & Triggers
You join a team whose single 900-line workflow runs everything on every push to every branch. How do you restructure it?IntermediatePushing to a PR branch runs CI twice (once for push, once for pull_request). How do you fix it?BeginnerProduct wants a "Deploy to staging" button that lets QA pick a version. Design it.BeginnerA nightly security scan should run at 02:00 India time on weekdays and also be runnable on demand. Write it.BeginnerYour team wants preview environments per PR on EKS, destroyed when the PR closes. Design the workflow.AdvancedTwo workflows must run in sequence: CI then a separate deploy workflow owned by another team. How do you link them?Intermediate