Skip to content

CI: a stacked PR retargeted to main gets no .NET run #146

Closed

Description

@CaffeinatedCoder

Problem

.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

  1. added
    github_actions
    chore
    area/release
    on Oct 18, 2026
  2. added this to the 10.0.0 milestone on Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/releasechoregithub_actions

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions