git-pulls

command line tool to facilitate github pull requests

  • 所有者: schacon/git-pulls
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

#git-pulls

If you find things that hub does not and you would like to see implemented, ping @AdrienGiboire for consideration.

Gem Version

Makes it easy to list and merge GitHub pull requests.

$ git pulls update
[fetches needed data for all pull requests]

$ git pulls list
Open Pull Requests for schacon/git-reference
19   10/26 0  Fix tag book link    ComputerDruid:fix-ta
18   10/21 0  Some typos fixing.   mashingan:master

$ git pulls list --reverse
Open Pull Requests for schacon/git-reference
18   10/21 0  Some typos fixing.   mashingan:master
19   10/26 0  Fix tag book link    ComputerDruid:fix-ta

$ git pulls checkout
Checking out all open pull requests for schacon/git-reference
> feature-request-1 into pull-feature-request-1
> feature/request2 into pull-feature/request2

$ git pulls show 1
> [summary]
> [diffstat]

$ git pulls show 1 --full
> [summary]
> [full diff]

$ git pulls browse 1
> go to web page (mac only)

$ git pulls merge 1
> merge pull request #1

##Requirements

git-pulls assumes you're using an 'origin' remote. If you are not,
either add an 'origin' remote that points to the GitHub repository you want to check
for pull requests, or set the name of your remote via an environment
variable, GIT_REMOTE.

##Private repositories

To manage pull requests for your private repositories you have set up your git config for github

$ git config --global github.user your_gitubusername
$ git config --global github.token your_githubtoken123456789

You must generate your OAuth token for command line use, see how to generate oauth token.

##Using git-pulls with GitHub Enterprise

If you want to use the git-pulls script with a private GitHub install, set the
github.host config value to your internal host.

$ git config --global github.host https://github.mycompany.com
$ git config --global github.api https://github.mycompany.com/api/v3

##Installation

Simply install it via Rubygems:

gem install git-pulls

(Prefix with sudo if necessary)

via Docker:

Use it as a container by building it first

docker build -t git-pulls .

And then launch the command like this :

docker run -v `pwd`:/app -v ~/.gitconfig:/root/.gitconfig --rm -it git-pulls list

##TESTING

To run the test suite use the following command :


bundle install
bundle exec rake test

主要指标

概览
名称与所有者schacon/git-pulls
主编程语言Ruby
编程语言Ruby (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2010-12-27 20:39:24
推送于2023-10-11 07:08:30
最后一次提交2016-03-29 17:25:44
发布数4
最新版本名称v0.3.1 (发布于 2011-02-25 09:47:15)
第一版名称v0.1.0 (发布于 )
用户参与
星数293
关注者数12
派生数47
提交数104
已启用问题?
问题数36
打开的问题数2
拉请求数25
打开的拉请求数0
关闭的拉请求数6
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?