Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including purgitory with all npm packages installed. Try it out:

var purgitory = require("purgitory")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

purgitory v0.1.6

Purge local branches that have been merged to the main branch in remote

Purgitory

Purge local branches that have been merged and deleted to the main branch in remote

CircleCI npm NPM

Status

Pretty stable. It does exactly what's on the cover,but there's lots of room for improvement

Usage

$ npx purgitory

or

$ npm -g i purgitory

$ purgit --help

Contribution

So far this is just code slapped together to make something work, it's far from perfect but there's great room for improvement, with the help from you.

To contribute, create an issue first, upon greenlight, you can submit a PR, this is to make sure that we don't work on the same thing at once, or you don't put all your hard work into something that contradicts plans I have for the project. Or you could pick out one of the TODO items as something you could tackle, I'd really appreciate it. Anyways to get started, fork the repo and clone locally then do:

$ npm install
$ npm link
$ npm run dev

npm run dev is just typescript building the project on the fly as files changes and because npm link doesn't always behaves, unit tests are your best friend when working on something.

TODO

  • [x] Unit tests, even just one
  • [ ] Selecting branches to exclude from the merge
  • [ ] Make this be a button away, via gui
  • [ ] Option to force delete remote merged branches, if not yet deleted

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free