Skip to content

ci(auto-assign-author): skip bot/agent PR authors#5533

Open
darkobas2 wants to merge 1 commit into
masterfrom
ci/auto-assign-skip-bots
Open

ci(auto-assign-author): skip bot/agent PR authors#5533
darkobas2 wants to merge 1 commit into
masterfrom
ci/auto-assign-skip-bots

Conversation

@darkobas2

Copy link
Copy Markdown
Contributor

Problem

auto-assign-author.yml fails on PRs opened by an agent/bot (e.g. Copilot coding-agent PRs) with:

HttpError: Assigning agents is not supported with GitHub App installation tokens. Use a user token (personal access token or OAuth token) instead.

addAssignees can't assign an agent using GITHUB_TOKEN (a GitHub App installation token).

Fix

The workflow only needs to assign human authors (board/report visibility), so:

  • guard the job on github.event.pull_request.user.type != 'Bot' → skip bot/agent authors entirely
  • add continue-on-error: true on the step so this cosmetic assignment can never fail CI again

No PAT/secret needed.

addAssignees fails for agent/bot authors (e.g. Copilot coding-agent PRs)
with 'Assigning agents is not supported with GitHub App installation
tokens' because the workflow uses GITHUB_TOKEN. The workflow only needs
to assign human authors, so guard on user.type != 'Bot'; also make the
step continue-on-error so this cosmetic assignment can never fail CI.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants