ci(release): generate shell completions in brew formula template#62
Merged
Conversation
Adds generate_completions_from_executable to the formula heredoc so each release regenerates a formula that auto-installs completions. Keeps the tap in sync with homebrew-onebrain#1 (which patched the live v3.2.19 formula).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The release workflow regenerates
Formula/onebrain.rbfrom a heredoc template on every stable tag and PUTs it toonebrain-ai/homebrew-onebrain. This adds the completion-install line to that template:So every future release ships a formula whose
brew installrunsonebrain completions {bash,zsh,fish}and installs the scripts automatically.Why also here (not just the tap)
The tap formula is auto-regenerated from this template each release. The companion PR
homebrew-onebrain#1patches the live v3.2.19 formula for immediate effect; this PR makes the change durable — without it, the next release would overwrite the tap edit.Notes
${...}shell expansion, no#{...}Ruby interpolation), so it passes through the<<FORMULAheredoc verbatim.completions <SHELL>— shipped in v3.2.19 (feat(cli): shell completions — hiddencompletionssubcommand + post-init hint (v3.2.19) #61).🤖 Generated with Claude Code