Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 23, 2025

GitHub Copilot PRs were automatically receiving inappropriate component/package labels (Component: Link, Component: Slider, Package: charting, etc.) and "PR: API Modified" labels via the GitOps bot rules.

Changes

Modified .github/policies/botRules.yml to exclude github-copilot[bot] from two auto-labeling rules:

  • File-based labeling (line 318): Skips component/package labels based on modified file paths
  • API Modified labeling (line 554): Skips "PR: API Modified" label when API files change

Both rules now check the PR author is not github-copilot[bot]:

- if:
    - payloadType: Pull_Request
    - not:
        isActivitySender:
          user: github-copilot[bot]
  then:
    # existing labeling logic

Human-authored PRs continue receiving automatic labels unchanged. Other bot rules (e.g., "Status: In PR" sync) remain active for all PRs.

Original prompt

When PR is open by copilot, strange label and project assigment occurs for particular PR.

following things should not happen:

  • @microsoft-github-policy-service microsoft-github-policy-service bot added Component: Link Component: Pivot Component: Slider Component: Toggle Package: charting Package: date-time Package: experiments Package: styling PR: API Modified labels on Aug 13
  • Copilot AI changed the title [WIP] [Feature]: propagate no-missing-jsx-pragma workspace rule to public feat: propagate no-missing-jsx-pragma rule to public eslint plugin

Assumption is that this is triggered by the bot following these rules https://github.com/microsoft/fluentui/blob/master/.github/policies/botRules.yml

This behaviour is wrong and shouldn't occur to avoid assigment of non relevant tags and projects


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Dec 23, 2025
Add exclusion for github-copilot[bot] actor in file-based auto-labeling and API Modified rules to prevent inappropriate label assignments on Copilot-created PRs.

Co-authored-by: Hotell <1223799+Hotell@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix incorrect label and project assignment by Copilot fix: exclude Copilot bot from auto-labeling PRs Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment