0.0.2 • Published 11 months ago

ttb v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

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

1.0.0

2 years ago

0.0.2

11 months ago

0.0.1

4 years ago