0.5.1 • Published 8 years ago

gic v0.5.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

npm version

gic

GitHub Issues Command line tool.

Install

$ npm install -g gic

Usage

set access token get from tokens

// ~/.gitconfig

[gic "github.com"]
  token = [ACCESS TOKEN]

// if you use Github Enterprise
[gic "enterprise.github.com"]
  token = [ACCESS TOKEN]

or

$ git config --global gic.github.com.token [ACCESS TOKEN]
$ git config --global gic.enterprise.github.com.token [ACCESS TOKEN]
$ gic [command = list] [...options]

Command

list

$ gic list

Show all issues on repository.

create

$ gic create

Create issue on repository, launch editor for write message.

show issue_number

Need user scope.

$ gic show 1

Show comments for issues.

comment issue_number

Add new comment.

$ gic comment 1

close issue_number

Close issue.

$ gic close 1

Option

  --noprogress dont display progress log.

Use with peco.

function peco-gic () {
  echo "\ngic list --noprogress"
  local selected_issue_number=$(gic list --noprogress | peco | sed -e 's/^  #\([0-9]*\).*$/\1/g')
  if [ -n "$selected_issue_number" ]; then
    BUFFER="gic show ${selected_issue_number}"
    zle accept-line
  fi
  zle clear-screen
}
zle -N peco-gic
bindkey "^N" peco-gic

ScreenShot

ScreenShot

License

MIT

0.5.1

8 years ago

0.5.0

8 years ago

0.4.0

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago

0.0.0

10 years ago