Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ghib

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ghib - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

release.sh

8

bin/index.js

@@ -11,3 +11,3 @@ #!/usr/bin/env node

var usage = 'Usage:'.yellow + ' ghib ' + '<github issue number>'.blue;
var usage = '\nUsage:'.yellow + ' ghib ' + '<github issue number>'.blue;

@@ -17,3 +17,5 @@ if (process.argv.length < 3)

if (isNaN(parseInt(process.argv[2])) || process.argv[2] === '0') {
var issueNumber = parseInt(process.argv[2]);
if (isNaN(issueNumber) || issueNumber == 0) {
console.error('\n<github issue number> must be a positive integer\n'.red);

@@ -64,3 +66,3 @@ console.error(usage);

return ghib.createBranch(Math.abs(parseInt(process.argv[2])));
return ghib.createBranch(Math.abs(issueNumber));
})

@@ -67,0 +69,0 @@ .catch(function(error){

@@ -50,3 +50,3 @@ var Promise = require('bluebird');

var title = issue.title
.replace(/[^\w\s]|_/g, '')
.replace(/[^\w\s_]/g, '')
.replace(/\s+/g, ' ')

@@ -53,0 +53,0 @@ .trim()

{
"name": "ghib",
"version": "0.0.2",
"version": "0.0.3",
"description": "create meaningful branch names based on github issues",

@@ -5,0 +5,0 @@ "main": "./lib/ghib.js",

ghib [![NPM version](https://badge.fury.io/js/ghib.png)](http://badge.fury.io/js/ghib)
====
**create meaningful git branch names (based on github issues) easily**
**create git branches with meaningful names by specifying a GitHub issue number**
[![NPM](https://nodei.co/npm/ghib.png)](https://nodei.co/npm/ghib/)
I try and create meaningful issue titles on GitHub and I found it annoying to
retype the same thing execpt with dashes when I create branches to work on those
issues.
### tl;dr
For example I opened an issue titled: _auto detect owner and repository_. It got
Issue Number: `#6` <br\> Issue Title: `auto detect owner and repository`
Executing `ghib 6` in my project directory. to quickly create the following
branch and check it out: `6-auto-detect-owner-and-repository`.
### Details
Lets say I opened an issue titled: _auto detect owner and repository_. It got
assigned an issue number: _6_. Now whenever I decide to start working on that
issue I'd like to be able to create a branch name for it quickly. Preferably
something that will quickly let me know what issue I'm working on and something
that will be meaninful.
that will be meaningful.
Issue Number: `#6` Issue Title: `auto detect owner and repository`
I use this to make me more productive in my workflow.
The following branch is created: `6-auto-detect-owner-and-repository` by
executing `ghib 6` in my project directory
### Installation

@@ -24,0 +26,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc