Skip to content

ci: fix homebrew publish — drop --fork-org (gittools-bot is a user) - #5005

Merged
arturcic merged 1 commit into
GitTools:mainfrom
arturcic:fix/homebrew-fork-org
Jul 1, 2026
Merged

ci: fix homebrew publish — drop --fork-org (gittools-bot is a user)#5005
arturcic merged 1 commit into
GitTools:mainfrom
arturcic:fix/homebrew-fork-org

Conversation

@arturcic

@arturcic arturcic commented Jul 1, 2026

Copy link
Copy Markdown
Member

Problem

The Publish to Homebrew run after #5004 failed:

Unable to fork: 'gittools-bot' is the login for a user account.
You must pass the login for an organization account.
(resource: Fork, code: invalid, field: organization)

brew bump-formula-pr --fork-org requires an organization login, but gittools-bot is a user account (gh api users/gittools-bot"type": "User"), and the publish authenticates as that user.

Fix

Drop --fork-org gittools-bot. With no --fork-org, brew bump-formula-pr forks Homebrew/homebrew-core to the authenticated user — i.e. gittools-bot/homebrew-core, the exact fork the previous mislav action targeted via push-to. No behavioural change beyond removing the invalid flag.

Follow-up to #5004.

🤖 Generated with Claude Code

…n org)

The Publish to Homebrew run failed with "Unable to fork: 'gittools-bot'
is the login for a user account. You must pass the login for an
organization account." brew bump-formula-pr --fork-org requires an
organization login, but the publish authenticates as the gittools-bot
user. Omitting the flag makes brew fork to the authenticated user
(gittools-bot/homebrew-core) — the same target push-to used.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 1, 2026 00:06
@arturcic
arturcic merged commit 3d1e7d1 into GitTools:main Jul 1, 2026
6 of 9 checks passed
@arturcic
arturcic deleted the fix/homebrew-fork-org branch July 1, 2026 00:06
@mergify

mergify Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Thank you @arturcic for your contribution!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the Publish to Homebrew GitHub Actions workflow by removing an invalid brew bump-formula-pr flag (--fork-org gittools-bot) that causes the run to fail because gittools-bot is a user account (not an organization). This keeps the intended behavior—forking Homebrew/homebrew-core to the authenticated user—while avoiding the hard failure introduced in the prior migration to brew bump-formula-pr.

Changes:

  • Remove --fork-org gittools-bot from the brew bump-formula-pr invocation to prevent forking errors.
  • Add an inline comment documenting why --fork-org is intentionally omitted and what behavior is expected instead.

@sonarqubecloud

sonarqubecloud Bot commented Jul 1, 2026

Copy link
Copy Markdown

@arturcic arturcic added the bug label Jul 3, 2026
@arturcic arturcic added this to the 6.8.1 milestone Jul 3, 2026
This was referenced Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants