Skip to content

Abort API review baseline workflow for unmerged PRs - #38818

Merged
AndriySvyryd merged 1 commit into
mainfrom
copilot/change-yml-to-abort-on-unmerged-prs
Aug 20, 2026
Merged

AndriySvyryd merged 1 commit into
mainfrom
copilot/change-yml-to-abort-on-unmerged-prs

Conversation

Copilot AI commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor
  • Fail the workflow when the selected PR is not merged.
  • Stop before calculating commits, labeling, building, or posting comments.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the API review baseline workflow to explicitly reject manual runs against unmerged pull requests, failing fast before doing any further work. This keeps the workflow aligned with its intent (processing merged PRs only) and avoids unnecessary labeling/building/commenting for PRs that haven’t landed.

Changes:

  • Fail the actions/github-script step (and therefore the job) when the selected PR is not merged.
  • Remove the prior informational log that allowed continuing with the PR head SHA when unmerged.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@AndriySvyryd
AndriySvyryd enabled auto-merge (squash) August 17, 2026 18:45
@AndriySvyryd
AndriySvyryd disabled auto-merge August 19, 2026 20:20
@AndriySvyryd
AndriySvyryd merged commit 0109efb into main Aug 20, 2026
17 of 18 checks passed
@AndriySvyryd
AndriySvyryd deleted the copilot/change-yml-to-abort-on-unmerged-prs branch August 20, 2026 21:06
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Aug 21, 2026
AndriySvyryd added a commit that referenced this pull request Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants