You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI: a stacked PR retargeted to main gets no .NET run #146
.github/workflows/dotnet.yml runs on pull_request with branches: [main, release/**]. A PR opened against another open PR's branch (the stacked convention in AGENTS.md) matches neither, so it gets no .NET run. When its base merges and the PR is retargeted to main, GitHub fires edited, which the .NET workflow does not listen for (PR hygiene does: types: [opened, edited, reopened, synchronize, labeled, unlabeled]). The PR then sits at MERGEABLE/BEHIND with only PR hygiene and dependency submission green, and nothing has built or tested it.
Observed on #144 (opened on test/sibling-parity-sweeps, retargeted after #143 merged): no .NET run until a manual merge of main pushed a synchronize event.
Change
One of:
add types: [opened, edited, reopened, synchronize] to the .NET workflow's pull_request trigger, so a retarget runs it; or
drop the branches filter on pull_request so a stacked PR is built against its stacked base from the start (the push trigger keeps its filter).
The second also gives the stacked PR a run while it is stacked, which is what the stacked label implies it should have.
Tests
Open a PR against a non-main branch, confirm a run starts; retarget it to main, confirm a second run starts.
Activity