Copilot commented on code in PR #62904:
URL: https://github.com/apache/doris/pull/62904#discussion_r3152454889


##########
.github/workflows/opencode-review-comment.yml:
##########
@@ -15,7 +15,12 @@ jobs:
     runs-on: ubuntu-latest
     if: >-
       github.event.issue.pull_request &&
-      startsWith(github.event.comment.body, '/review')
+      startsWith(github.event.comment.body, '/review') &&
+      (
+        github.event.comment.author_association == 'MEMBER' ||
+        github.event.comment.author_association == 'OWNER' ||
+        github.event.comment.author_association == 'COLLABORATOR'
+      )

Review Comment:
   The new `/review` gate doesn’t match the PR intent (“only committer and 
collaborator”). This condition allows `MEMBER`/`OWNER` as well, and it doesn’t 
verify the commenter is the PR author/committer. Either adjust the PR 
title/description, or change the workflow to verify commenter permissions 
(e.g., via GitHub API permission check) and/or match the PR author as intended.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to