From e1d91de4d4a0c1ed06a2e81ee5e88101da26e4f4 Mon Sep 17 00:00:00 2001 From: Michael Flanakin Date: Fri, 3 Apr 2026 04:40:27 -0700 Subject: [PATCH 1/4] Add missing comment triggers to Needs: Attention policy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add Issue_Comment payload type and remove issueAuthor filter so that ALL comments on a PR — inline review comments, formal reviews, and conversation comments from any user — trigger the Needs: Attention label. Co-Authored-By: Claude Opus 4.6 --- .github/policies/pulls-03-feedback.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/policies/pulls-03-feedback.yml b/.github/policies/pulls-03-feedback.yml index 3fb2c3806..bf6d08eb3 100644 --- a/.github/policies/pulls-03-feedback.yml +++ b/.github/policies/pulls-03-feedback.yml @@ -20,8 +20,6 @@ configuration: - payloadType: Pull_Request_Review_Comment - isAction: action: Created - - isActivitySender: - issueAuthor: False - and: - payloadType: Pull_Request_Review - isReviewState: @@ -30,8 +28,10 @@ configuration: - payloadType: Pull_Request_Review - isReviewState: reviewState: Commented - - isActivitySender: - issueAuthor: False + - and: + - payloadType: Issue_Comment + - isAction: + action: Created - not: targetsBranch: branch: main From b44a34eb6f05f718cdbc58558aa327527cc4630d Mon Sep 17 00:00:00 2001 From: Michael Flanakin Date: Sun, 2 Aug 2026 02:37:08 -0700 Subject: [PATCH 2/4] Restore issueAuthor guards on pulls-03-feedback triggers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prevents label thrash with pulls-04-respond.yml, a bot self-reply loop, and a #needs-review conflict by requiring non-author activity on all triggers, including the new Issue_Comment branch. 🤖 Generated with [Claude Code](https://claude.ai/claude-code) Co-Authored-By: MSBrett Co-Authored-By: Claude --- .github/policies/pulls-03-feedback.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/policies/pulls-03-feedback.yml b/.github/policies/pulls-03-feedback.yml index bf6d08eb3..417051735 100644 --- a/.github/policies/pulls-03-feedback.yml +++ b/.github/policies/pulls-03-feedback.yml @@ -20,6 +20,8 @@ configuration: - payloadType: Pull_Request_Review_Comment - isAction: action: Created + - isActivitySender: + issueAuthor: False - and: - payloadType: Pull_Request_Review - isReviewState: @@ -28,10 +30,14 @@ configuration: - payloadType: Pull_Request_Review - isReviewState: reviewState: Commented + - isActivitySender: + issueAuthor: False - and: - payloadType: Issue_Comment - isAction: action: Created + - isActivitySender: + issueAuthor: False - not: targetsBranch: branch: main From 3d6d76c73f737b0d368b33f5ca24c4014005ab84 Mon Sep 17 00:00:00 2001 From: Michael Flanakin Date: Wed, 12 Aug 2026 10:17:47 -0700 Subject: [PATCH 3/4] Guard Issue_Comment trigger to open PRs only Add isPullRequest and isOpen guards to the new Issue_Comment trigger in pulls-03-feedback.yml so it doesn't fire on plain issues or on closed/merged PRs. Co-Authored-By: MSBrett Co-Authored-By: Claude --- .github/policies/pulls-03-feedback.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/policies/pulls-03-feedback.yml b/.github/policies/pulls-03-feedback.yml index 417051735..32e199073 100644 --- a/.github/policies/pulls-03-feedback.yml +++ b/.github/policies/pulls-03-feedback.yml @@ -38,6 +38,8 @@ configuration: action: Created - isActivitySender: issueAuthor: False + - isPullRequest + - isOpen - not: targetsBranch: branch: main From 1e022ebd7902c779d610dce92db13d66e6968257 Mon Sep 17 00:00:00 2001 From: MSBrett Date: Fri, 21 Aug 2026 21:03:22 -0700 Subject: [PATCH 4/4] fix: prevent conflicting needs-review triggers Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/policies/pulls-03-feedback.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/policies/pulls-03-feedback.yml b/.github/policies/pulls-03-feedback.yml index 32e199073..5a2aee721 100644 --- a/.github/policies/pulls-03-feedback.yml +++ b/.github/policies/pulls-03-feedback.yml @@ -36,6 +36,9 @@ configuration: - payloadType: Issue_Comment - isAction: action: Created + - not: + commentContains: + pattern: '#needs-review' - isActivitySender: issueAuthor: False - isPullRequest