From 14cad7dfe54536873f464a73a4dd92010c6b8d3c Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Fri, 27 Mar 2026 22:08:28 -0500 Subject: [PATCH] fix(ci): restrict backport workflow to PRs targeting main 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) --- .github/workflows/microsoft-backport.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/microsoft-backport.yml b/.github/workflows/microsoft-backport.yml index e970d331bae6..9d19efb82643 100644 --- a/.github/workflows/microsoft-backport.yml +++ b/.github/workflows/microsoft-backport.yml @@ -6,6 +6,7 @@ on: issue_comment: types: [created] pull_request: + branches: [main] types: [synchronize] permissions: