feat: restructure the formula for per-package release-please versioning - #3
Merged
Conversation
Moves Formula/lc.rb -> Formula/linear-cli/linear-cli.rb (class Lc -> LinearCli) - Homebrew derives the formula's install name from the file's basename, not its directory, so this is still `brew install linear-cli`, matching Homebrew's own sharded-layout convention (Formula/a/ack.rb) for nested formula files. url/sha256 deliberately left unchanged (still v1.0.0) - bumping to the real latest release is a separate follow-up. Adds .release-please-manifest.json/.release-please-config.json (manifest mode, one package: "Formula/linear-cli") plus a release-please workflow, so this formula gets its own independently tracked version/changelog (Formula/linear-cli/.version + CHANGELOG.md) as this tap grows to host more than one formula - verified release-please's manifest mode requires each package's path to be a real directory, not a file, which is exactly what this move sets up. Updates Readme.adoc's install command to match.
There was a problem hiding this comment.
Pull request overview
This PR restructures the tap to support per-formula (per-package) Release Please “manifest mode” versioning by moving the lc formula into a dedicated package directory and adding the Release Please configuration + workflow to manage a per-package .version and CHANGELOG.md.
Changes:
- Moved/renamed the formula to
Formula/linear-cli/linear-cli.rband updated the formula class name toLinearCli. - Added Release Please manifest-mode configuration (
.release-please-*.json) plus arelease-pleaseGitHub Actions workflow. - Updated
Readme.adocinstall instructions tobrew install linear-cliand clarified what binaries are installed.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
Readme.adoc |
Updates install command and description to reflect the new formula name/path. |
Formula/linear-cli/linear-cli.rb |
Renames the formula class and relocates the formula under a package directory for manifest mode. |
Formula/linear-cli/CHANGELOG.md |
Introduces per-package changelog file for Release Please to manage. |
Formula/linear-cli/.version |
Adds per-package version file for Release Please to manage. |
.release-please-manifest.json |
Sets up manifest-mode package version tracking for Formula/linear-cli. |
.release-please-config.json |
Configures Release Please to update .version and CHANGELOG.md for the package. |
.github/workflows/release-please.yaml |
Adds automation to open/update Release Please PRs on pushes to main. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
6 tasks
bougyman
added a commit
to rubyists/linear-cli
that referenced
this pull request
Aug 12, 2026
…95) ## Summary - New `homebrew-tap-bump` job, parallel to the `container` job (both `needs: [burrito-package]`) - reads the just-published release's tag + `SHA256SUMS`, updates `rubyists/homebrew-tap`'s `Formula/linear-cli/linear-cli.rb` `url`/`sha256` for both platforms via `ci/bump_homebrew_formula.rb`, and opens a PR there via `peter-evans/create-pull-request@v8` (no-op if nothing changed). - Uses the `RELEASE_PLEASE_TOKEN` org secret to push/PR against a different repo than the one the workflow runs in - the default `GITHUB_TOKEN` is scoped only to this repo. - The actual bump logic lives in `ci/bump_homebrew_formula.rb` rather than inline in the workflow YAML, so it's runnable/testable locally without a real CI run. - Depends on rubyists/homebrew-tap#3 (submodule pointer bumped to that branch's tip - will need another bump if the SHA changes from a squash-merge once that PR lands). ## Test plan - [x] Ran the bump script directly against a real copy of the formula and real release checksums (v1.2.0) - correct output, valid Ruby syntax - [x] Confirmed idempotent (re-running with the same version produces identical output) - [x] Re-verified after the tap repo's `Formula/lc.rb` -> `Formula/linear-cli/linear-cli.rb` move - still works correctly against the new path/structure - [x] Verified `peter-evans/create-pull-request@v8`'s `path:` input (needed since this job checks out two different repos side by side) via its own docs - [x] `actionlint` clean on `main.yaml` - [x] `mix format --check-formatted` / `mix usage_rules.sync --check` clean in `app/` (unaffected, but re-verified since they're now CI gates) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
4 tasks
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
Formula/lc.rb->Formula/linear-cli/linear-cli.rb(class Lc->LinearCli) - Homebrew derives the formula's install name from the file's basename, not its directory, so this is stillbrew install linear-cli, matching Homebrew's own sharded-layout convention (Formula/a/ack.rb) for nested formula files.url/sha256deliberately left unchanged (still v1.0.0) - bumping to the real latest release is a separate follow-up (rubyists/linear-cli's ownhomebrew-tap-bumpworkflow job will handle that automatically going forward)..release-please-manifest.json/.release-please-config.json(manifest mode, one package:Formula/linear-cli) plus arelease-pleaseworkflow, so this formula gets its own independently tracked version/changelog (Formula/linear-cli/.version+CHANGELOG.md) as this tap grows to host more than one formula - verified release-please's manifest mode requires each package's path to be a real directory, not a file, which is exactly what this move sets up.Readme.adoc's install command to match.Test plan
ruby -csyntax check on the moved/renamed formulaactionlintclean on the new workflowrubyists/linear-cli's own formula-bump script against the new file location/structure - still works correctly🤖 Generated with Claude Code