Skip to content

Allow cherry-pick bot PRs in engineering system changes check#311475

Merged
benvillalobos merged 4 commits intomainfrom
agents/update-no-engineering-check-cherry-pick
Apr 20, 2026
Merged

Allow cherry-pick bot PRs in engineering system changes check#311475
benvillalobos merged 4 commits intomainfrom
agents/update-no-engineering-check-cherry-pick

Conversation

@benvillalobos
Copy link
Copy Markdown
Member

Add an exception to the "Prevent engineering system changes in PRs" workflow for cherry-pick PRs created by vs-code-engineering[bot].

A PR is allowed through when all three conditions are met:

  • Author is vs-code-engineering[bot]
  • Title starts with [cherry-pick]
  • PR has the cherry-pick-artifact label

All downstream guard steps are updated to also check this new exception.

Add an exception for PRs created by vs-code-engineering[bot] whose title
starts with [cherry-pick] and that carry the cherry-pick-artifact label.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 20, 2026 20:12
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 20, 2026

Screenshot Changes

Base: da62f681 Current: fb3fa047

Changed (1)

editor/inlineCompletions/other/JumpToHint/Dark
Before After
before after

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 “Prevent engineering system changes in PRs” GitHub Actions workflow to permit a narrowly-scoped exception for cherry-pick PRs opened by vs-code-engineering[bot], so that automation can cherry-pick changes that touch protected engineering-system files.

Changes:

  • Adds a new “cherry-pick bot PR” exception gate requiring author = vs-code-engineering[bot], title prefix = [cherry-pick], and label = cherry-pick-artifact.
  • Updates downstream guard steps to honor the new exception (skip blocking/permission checks when it applies).
Show a summary per file
File Description
.github/workflows/no-engineering-system-changes.yml Introduces a cherry-pick exception step and threads it through the subsequent enforcement conditions.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread .github/workflows/no-engineering-system-changes.yml Outdated
The label is applied ~2s after PR creation, so the webhook payload may
not include it. Fetch current labels from the API instead, gated behind
cheap event-payload checks to avoid extra API calls on unrelated PRs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 2

Comment thread .github/workflows/no-engineering-system-changes.yml Outdated
Comment thread .github/workflows/no-engineering-system-changes.yml Outdated
Retry the cherry-pick-artifact label check up to 3 times (2s apart) to
handle the ~2s delay between PR creation and label application.

Consolidate the repeated exception guards into a single 'allowed' step
with a 'blocked' output, simplifying downstream conditions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new

@benvillalobos benvillalobos marked this pull request as ready for review April 20, 2026 21:00
@benvillalobos benvillalobos enabled auto-merge (squash) April 20, 2026 21:05
@benvillalobos benvillalobos merged commit 79e5111 into main Apr 20, 2026
26 checks passed
@benvillalobos benvillalobos deleted the agents/update-no-engineering-check-cherry-pick branch April 20, 2026 21:23
@vs-code-engineering vs-code-engineering bot added this to the 1.118.0 milestone Apr 20, 2026
benvillalobos added a commit that referenced this pull request Apr 20, 2026
… check (#311505)

Allow cherry-pick bot PRs in engineering system changes check (#311475)

* Allow cherry-pick bot PRs in engineering system changes check

Add an exception for PRs created by vs-code-engineering[bot] whose title
starts with [cherry-pick] and that carry the cherry-pick-artifact label.



* Fetch cherry-pick-artifact label via API at runtime

The label is applied ~2s after PR creation, so the webhook payload may
not include it. Fetch current labels from the API instead, gated behind
cheap event-payload checks to avoid extra API calls on unrelated PRs.



* Add label retry loop and consolidate guard expressions

Retry the cherry-pick-artifact label check up to 3 times (2s apart) to
handle the ~2s delay between PR creation and label application.

Consolidate the repeated exception guards into a single 'allowed' step
with a 'blocked' output, simplifying downstream conditions.



---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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