Skip to content

[CI] Copilot auto-reviews trigger workflow approval requirement on pr_review_trigger.yml #50370

Closed as not planned

Description

@thisisnic

When GitHub Copilot automatically reviews a PR, it triggers the "Label when reviewed" workflow (pr_review_trigger.yml), which fires on all pull_request_review events. Because copilot-pull-request-reviewer has authorAssociation: "CONTRIBUTOR" (not "MEMBER" or "COLLABORATOR"), GitHub Actions treats it as an outside collaborator and requires a committer to manually click "Approve and run" before the workflow proceeds.

This is unnecessary friction — the workflow only uploads the event payload for the label bot, and Copilot's COMMENTED review shouldn't trigger label changes anyway.

Proposed fix: Add a condition to skip bot reviews in pr_review_trigger.yml:

jobs:
  label-when-reviewed:
    name: "Label PRs when reviewed"
    if: github.event.review.user.type != 'Bot'
    runs-on: ubuntu-latest

This keeps labeling working as normal for human reviews while preventing the unnecessary approval prompt.

Activity

  1. thisisnic commented on Jul 28, 2026

    @thisisnic
    MemberAuthor

    This is tricky to fix and probably not worth the time so I'm just closing it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions