ttb
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

ttb

A CLI tool to create a new branch from a ticket number in your project management tool.

Requirements

  • Node v13.x or higher
  • An Personal API token

Usage

Installation

npm i -g ttb

Setup

ttb init
ttb add

Branching

Go to your project directory and run

ttb branch <ticket-number>

Commands

  • init - create a config file in your user directory.
  • add - add a new credential. (Will be set to active if no other credentials exist)
  • remove - remove a credential.
  • use - set a credential to active. (This will be the credential used for the branch command)
  • branch <ticket-number> - create a new branch.

Current Support

  • Github

Future

Jira support is soon in progress. The goal is to be able to create a branch from a ticket number. The branch name will be the ticket number and the title of the ticket. The ticket number will be prepended with the ticket type. For example, feature/ttb-1234-this-is-the-title-of-the-ticket.

Development

  1. pnpm i
  2. pnpm run build
  3. pnpm run start <command>

Notes

  • note that options are not working properly when running pnpm run start

Sponsors

Osynlig AB

Readme

Keywords

none

Package Sidebar

Install

npm i ttb

Weekly Downloads

2

Version

0.0.2

License

ISC

Unpacked Size

26.9 kB

Total Files

80

Last publish

Collaborators

  • rizken
  • bjornet