tgl: manage Tangled (tangled.org) from the terminal www.npmjs.com/package/tangled-cli

tgl 0.4.0: merge PRs, create repos, labels, CI and npm #20

Merged oviiione.eu
targeting master from feat/v0.4.0
Merged opened by and assigned to oviiione.eu
targeting master from feat/v0.4.0

tgl 0.4.0: merge PRs, create repos, labels, CI and npm.

New commands

  • tgl pr merge: Tangled's server applies the PR (like the website's merge button), then it is marked merged and the issues it fixes are closed. --dry-run only checks for conflicts.
  • tgl repo create: a new, empty repo on Tangled (--remote also adds it as a git remote).
  • tgl issue label / tgl pr label: add or remove labels; view now shows them.
  • tgl label list | create | delete: the repo's own labels (simple, fixed choices, person, number, yes/no).
  • tgl issue stale: labels open issues with no recent activity, and unlabels them when they get activity again.
  • tgl repo view --web opens the repo in the browser.

Also

  • CI pipelines can log in with TGL_ACCOUNT and TGL_APP_PASSWORD (a pipeline secret).
  • Unit tests run on Tangled's spindle (Node 22 and 24) and on GitHub Actions (Linux, Windows, macOS; Node 20, 22, 24).
  • Contribution guidelines in English and Spanish.
  • Ready to publish on npm as tangled-cli; the README installs with npm install -g tangled-cli.
  • A clearer message when the account's server rate-limits logins.

Tried for real in a throwaway repo, checked on the Tangled website: repo creation, merging a PR (PR shown as merged, its issue closed), labels and custom labels, and stale labelling.

Commits 0