LoginSignup
18
16

More than 5 years have passed since last update.

Issue を Pull Request に

Last updated at Posted at 2014-01-11

hub を使う

$ brew install hub

.zshrc とか、お使いのターミナルのrcに1行追加

$ eval "$(hub alias -s)"

rcを再読み込みして

$ source ~/.zshrc

Issue を ぷるりにしよう

$ git pull-request [branch名] -i [issue番号]

例) fix_branch というブランチで #133 の Issue を pull requestにする

$ git pull-request fix_branch -i 133
  • 考えてみれば当たり前なのだが、ブランチをpushしてからじゃないとできない(ちょっとハマってた…
  • あとこの場合、ぷるりを送った人は、元のIssueを立ち上げた人ということに形式上、なる。

追記

これ叩いた時のログを良く読んだらこう書いてあった。

Warning: Issue to pull request conversion is deprecated and might not work in the future.

なんかGitHub的にはあんましよくないから近々この機能なくなるかもってことなのだろうか…。
えー、便利なのに…

はぶよ( ˘ω˘)"

18
16
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
16