Skip to content

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

Closed

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

Activity

  1. added theissue type on May 6, 2026
  2. Ma77Ball commented on May 7, 2026

    @Ma77Ball
    Contributor

    /take

  3. Yicong-Huang commented on May 7, 2026

    @Yicong-Huang
    Contributor

    I want to keep the namespace for /review: we may use it for self-review or similar.

    How about /request-review, /unrequest-review instead?

  4. aglinxinyuan commented on May 7, 2026

    @aglinxinyuan
    ContributorAuthor

    I want to keep the namespace for /review: we may use it for self-review or similar.

    How about /request-review, /unrequest-review instead?

    Sure.

  5. Ma77Ball commented on May 7, 2026

    @Ma77Ball
    Contributor

    I will keep that in mind and make the changes

  6. added a commit that references this issue on May 9, 2026
    2652315
  7. Ma77Ball commented on May 9, 2026

    @Ma77Ball
    Contributor

    I'm testing the copilot feature rn.

  8. Ma77Ball commented on May 9, 2026

    @Ma77Ball
    Contributor

    I'm noticing the request and unrequest are working, but Copilot refuses to run. I will do more tests and raise a fix soon.

  9. Yicong-Huang commented on May 9, 2026

    @Yicong-Huang
    Contributor

    I think it's fine. I believe I read from somewhere else that copilot review might require a ruleset to enable. it is a special API. we can leave it aside. I see the request is working as expected! thanks for the great effort.

    I suggest you send an email to dev email list to notify the community about this helpful tool!

  10. Ma77Ball commented on May 9, 2026

    @Ma77Ball
    Contributor

    I will send an email out when I get back home, currently at a Mother's Day celebration with family.

  11. added a commit that references this issue on Jun 22, 2026
    64173be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions