Interview Prep/GitHub Actions/Pipeline Design & Triggers

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 →

  1. Add the trigger:
    on:
      pull_request:
      merge_group:
    
  2. Make sure job names in merge_group runs match the required check (fan-in ci-ok).
  3. Do not use paths filters 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".

All GitHub Actions questions Roadmap: GitHub Actions

More on Pipeline Design & Triggers