Skip to content

Auto-triage: support /review and /unreview comments to request reviewers on PRs #4975

@aglinxinyuan

Description

@aglinxinyuan

Task Summary

Extend the comment-command automation in take-commands.yml so PR authors can request reviewers via comments:

  1. /review @alice @bob requests review from alice and bob on the current PR.
  2. /unreview @alice cancels a pending review request from alice.

Follow-up to #4884 (comment).

Implementation: add a sibling job in take-commands.yml triggered by issue_comment.created with issue.pull_request != null, mirroring the job-level startsWith gate so non-matching comments do not allocate a runner. Restrict to the PR author so drive-by reviewer assignment from non-authors is dropped. Use pulls.requestReviewers / pulls.removeRequestedReviewers; the workflow needs pull-requests: write.

Task Type

  • DevOps / Deployment / CI

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions