Skip to content

fix(ci): restrict backport workflow to PRs targeting main#2877

Merged
Saadnajmi merged 1 commit intomicrosoft:mainfrom
Saadnajmi:backport-workflow-main-only
Mar 31, 2026
Merged

fix(ci): restrict backport workflow to PRs targeting main#2877
Saadnajmi merged 1 commit intomicrosoft:mainfrom
Saadnajmi:backport-workflow-main-only

Conversation

@Saadnajmi
Copy link
Copy Markdown
Collaborator

Summary

The update-backport job in the backport workflow triggers on every pull_request: synchronize event, causing it to run unnecessarily on backport PRs and other non-main branches. This adds a branches: [main] filter so it only fires for PRs targeting main.

Test plan

  • Verify the backport workflow no longer triggers on PRs to stable branches
  • Verify /backport comments still work on PRs to main

🤖 Generated with Claude Code

The update-backport job triggers on every `pull_request: synchronize`
event, causing it to run unnecessarily on backport PRs and other
non-main branches. Add `branches: [main]` filter.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Saadnajmi Saadnajmi requested a review from a team as a code owner March 28, 2026 03:09
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 28, 2026

⚠️ No Changeset found

Latest commit: 14cad7d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@Saadnajmi Saadnajmi merged commit 44ba85f into microsoft:main Mar 31, 2026
16 checks passed
@Saadnajmi Saadnajmi deleted the backport-workflow-main-only branch March 31, 2026 18:26
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.

3 participants