Skip to content
This repository was archived by the owner on Dec 1, 2026. It is now read-only.

fix(release): open a homebrew-tap PR instead of pushing - #49

Closed
adolsalamanca wants to merge 1 commit into
mainfrom
adol/homebrew-tap-pr
Closed

adolsalamanca wants to merge 1 commit into
mainfrom
adol/homebrew-tap-pr

Conversation

@adolsalamanca

Copy link
Copy Markdown

This change adds homebrew_casks[].repository.pull_request to .goreleaser.yaml, so the release opens a pull request on timescale/homebrew-tap instead of pushing the cask to main. Since 2026-11-12, the require-pr ruleset protects the tap's main. It requires a pull request with one approval given after the last push, and no account can bypass it. A direct push to main fails.

The config sets no branch, so GoReleaser pushes the cask to a ghost-<version> branch and opens a ready pull request against main. The account that owns HOMEBREW_TAP_GITHUB_TOKEN pushes the branch, so each release needs an approval from a different account. Auto-merge can be enabled on that pull request. The tap does not delete merged branches.

refs: PLA-2133

- homebrew-tap main now needs a pull request with one approval, so a
  direct push from the release fails
@adolsalamanca

Copy link
Copy Markdown
Author

Closing: homebrew-tap does not require pull requests any more, so this change is not needed. A later change moves the tap publish to a GitHub App token (PLA-2133).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant