Skip to content

chore(npm): retire @gitlawb/gl - #677

Merged
kevincodex1 merged 2 commits into
mainfrom
chore/retire-gitlawb-npm
Dec 4, 2026
Merged

kevincodex1 merged 2 commits into
mainfrom
chore/retire-gitlawb-npm

Conversation

@kevincodex1

@kevincodex1 kevincodex1 commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

What

0.9.0 was the bridge release, and every @gitlawb/gl* version is now deprecated with a pointer to @twigpine/cli. As docs/NPM_PACKAGING.md planned, the old package's release job and sources go now. Without this, the next release (or an npm_backfill_tag dispatch) would publish a fresh @gitlawb/gl that isn't deprecated.

  • release.yml: the npm-publish job is removed; npm-publish-cli is unchanged. The backfill input notes that npm backfill needs v0.8.0 or later.
  • npm/packages/ and its .gitignore entries are removed.
  • README installs @twigpine/cli (macOS / Linux / Windows). npm/README.md, docs/NPM_PACKAGING.md and docs/LEGACY-NAMES.md record the move as done.
  • scripts/test-resolve-release-tag.sh: the removed job's pins and dist-tag test are gone. It now pins the @twigpine/cli job's Fetch release archives and Publish @twigpine/cli steps.
  • scripts/npm/test-npm-packages.sh: new case. An npm warning on stderr during a successful lookup must not turn a new release into a backfill (the regression the removed test guarded). Checked by mutation: it fails when the script mixes stderr into the lookup.

Kept on purpose: the CLI's notice telling users of an old @gitlawb/gl npm install to move (until 1.0), and the gl / git-remote-gitlawb command names.

Checks

  • scripts/npm/test-npm-packages.sh: 52/52.
  • scripts/test-resolve-release-tag.sh: passes everything this change touches (pinned steps, job environments, npm pin, stale reads). On macOS it stops at the Docker moving-tag case because macOS bash is 3.2; unchanged main stops at the same place. CI runs it in full on Linux.
  • Independent review agent: no breakage; its 6 points are fixed in the second commit.
  • Local CodeRabbit on both commits: 0 findings.

Summary by CodeRabbit

  • New Features

    • The @twigpine/cli installation instructions now cover macOS, Linux, and Windows.
  • Changes

    • @gitlawb/gl has been retired and its published versions deprecated. Existing registry versions remain available, but new installations should use @twigpine/cli.
    • The command-line tool now directs users with an older npm installation to @twigpine/cli.

0.9.0 was the bridge release and every @gitlawb/gl* version is now
deprecated with a pointer to @twigpine/cli, so the old package's release
job and sources go, as docs/NPM_PACKAGING.md planned. Without this, the
next release (or an npm_backfill_tag dispatch) would publish a fresh,
un-deprecated @gitlawb/gl.

- release.yml: drop the npm-publish job (npm-publish-cli is unchanged)
- remove npm/packages/
- README installs @twigpine/cli; npm docs and LEGACY-NAMES say it is done
- test-resolve-release-tag.sh: drop the removed job's pins and its
  dist-tag test; pin the Publish @twigpine/cli step instead
- test-resolve-release-tag.sh: pin the npm job's Fetch release archives
  step (the old job's Lay in release binaries matcher was dead)
- test-npm-packages.sh: an npm warning on stderr during a successful
  lookup must not turn a new release into a backfill (the regression the
  removed job's test covered)
- npm/.gitignore: drop the old package's entries
- README: the npm package also ships Windows
- release.yml: npm backfill needs v0.8.0 or later; dispatch comment names
  every job that tolerates the skipped release-please
@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request removes the @gitlawb/gl package sources and publishing job. It updates release workflow checks and installation and migration documentation for @twigpine/cli, and adds a test for publishing when a successful npm registry lookup emits a config warning.

Changes: npm package retirement and CLI publishing

Layer / File(s) Summary
Remove the legacy package and record its retirement
.github/workflows/release.yml, npm/.gitignore, npm/packages/gl*, README.md, docs/LEGACY-NAMES.md, docs/NPM_PACKAGING.md, npm/README.md
The @gitlawb/gl publishing job and package sources are removed. Installation and migration documentation identifies @twigpine/cli as the replacement and records the legacy package’s retirement.
Update the retained CLI release workflow and checks
.github/workflows/release.yml, scripts/test-resolve-release-tag.sh, scripts/npm/test-npm-packages.sh, docs/NPM_PACKAGING.md
The workflow comments update the npm backfill minimum and identify jobs that tolerate a skipped release-please result. Workflow checks now expect archive fetching and publishing through npm-publish-cli. A test checks publishing when a successful registry lookup emits a config warning.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related issues

Possibly related PRs

  • Twigpine/node#127: PR #127 adds the @gitlawb/gl package sources and publishing path that this pull request removes.

Suggested labels: kind:ci, documentation

Suggested reviewers: jatmn

Merge Risk: Minimal · up to e0cc7

This change retires the legacy @gitlawb/gl npm package and points users to @twigpine/cli in the install and migration docs. No concrete merge-blocking risk was identified, and the retained CLI release path is unchanged.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "chore(npm): retire @gitlawb/gl" is short, uses Conventional Commits form, and names the main change. The changeset removes the @gitlawb/gl npm package sources, its release job (npm-publish)…
Description check Passed The description follows the template's main sections. It has a summary (What), motivation (why the old release job must go before the next release or backfill), a list of concrete changes by file, and…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "chore(npm): retire @gitlawb/gl" is short, uses Conventional Commits form, and names the main change. The changeset removes the @gitlawb/gl npm package sources, its release job (npm-publish), and its install docs, which matches the title. The title is specific to the npm legacy package and does not cover the test and README changes, which is expected.

Full details: Description check

Explanation

The description follows the template's main sections. It has a summary (What), motivation (why the old release job must go before the next release or backfill), a list of concrete changes by file, and verification steps with results. It does not fill the template's 'Closes #' issue link, the 'Kind of change' checklist, the 'Before you request review' checklist, or the 'How a reviewer can verify' code block with commands. It also gives no crate names. These are gaps, but the core content is present.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 04ca94d9-3aea-48c4-96f7-9d5745c35ef7
Commits

Reviewing files that changed from the base of the PR and between ecf0686 and e0cc788.

Files selected for processing: 20

  • .github/workflows/release.yml
  • README.md
  • docs/LEGACY-NAMES.md
  • docs/NPM_PACKAGING.md
  • npm/.gitignore
  • npm/README.md
  • npm/packages/gl-darwin-arm64/package.json
  • npm/packages/gl-darwin-x64/package.json
  • npm/packages/gl-linux-arm64/package.json
  • npm/packages/gl-linux-x64/package.json
  • npm/packages/gl/README.md
  • npm/packages/gl/bin/.gitkeep
  • npm/packages/gl/bin/git-remote-gitlawb
  • npm/packages/gl/bin/git-remote-twigpine
  • npm/packages/gl/bin/gl
  • npm/packages/gl/bin/twigpine
  • npm/packages/gl/install.js
  • npm/packages/gl/package.json
  • scripts/npm/test-npm-packages.sh
  • scripts/test-resolve-release-tag.sh
Files with no reviewable changes: 12

  • npm/.gitignore
  • npm/packages/gl-darwin-arm64/package.json
  • npm/packages/gl-darwin-x64/package.json
  • npm/packages/gl-linux-arm64/package.json
  • npm/packages/gl-linux-x64/package.json
  • npm/packages/gl/README.md
  • npm/packages/gl/bin/git-remote-gitlawb
  • npm/packages/gl/bin/git-remote-twigpine
  • npm/packages/gl/bin/gl
  • npm/packages/gl/bin/twigpine
  • npm/packages/gl/install.js
  • npm/packages/gl/package.json

Included review availability: This review used your included allowance. 3 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

@kevincodex1
kevincodex1 merged commit 4184cd9 into main Dec 4, 2026
20 checks passed
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