Skip to content

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

Merged
darkobas2 merged 1 commit into
masterfrom
ci/auto-assign-skip-bots
Jul 11, 2026
Merged

ci(auto-assign-author): skip bot/agent PR authors#5533
darkobas2 merged 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>
@darkobas2 darkobas2 merged commit 309539c into master Jul 11, 2026
17 of 21 checks passed
@darkobas2 darkobas2 deleted the ci/auto-assign-skip-bots branch July 11, 2026 10:58
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