gic

0.5.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i gic

Weekly Downloads

12

Version

0.5.1

License

MIT

Last publish

Collaborators

  • bonegollira