Skip to content

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

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

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
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.

1 participant