Copilot commented on code in PR #51233:
URL: https://github.com/apache/arrow/pull/51233#discussion_r3956842219
##########
.github/workflows/comment_bot.yml:
##########
@@ -61,7 +61,9 @@ jobs:
name: "Assign issue"
permissions:
issues: write
- if: github.event.comment.body == 'take'
+ if: |
+ github.event.comment.body == 'take' &&
+ github.event.issue.assignee == null
Review Comment:
The workflow triggers on `issue_comment`, which fires for both issues and
pull requests. As written, a `take` comment on an unassigned PR would also
assign the PR to the commenter, which doesn’t match the intended “issue-only”
behavior.
--
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]