Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

GitHub | Pull Requestの受入手順

概要

Pull Requestの受入手順

詳細

Pull Requestの受入手順について

手順

  • GitHubのPull RequestのViewでコードレビューを行う。行単位でコメント可能
  • 開発環境に最新の Pull Request 受信側リポジトリを反映する
$ git clone <"受信側最新リポジトリ">
$ git remote add <"Pull Request 送信者名"> <"送信側リポジトリ">
$ git fetch <"Pull Request 送信者名">
$ git checkout -b <"作業用リポジトリ名">
  • マージする
$ git merge <"Pull Request 送信者名">/<"ブランチ名">
  • 取り込んだ内容を動作確認する
  • メインのリポジトリに取り込みます。仮に master とします
$ git checkout master
  • pushします
$ git push
  • 作業用のブランチを削除します
$ git branch -d <"作業用リポジトリ名">
  • Pull Request がクローズされていることを確認します
  • Pull Request の送信者に対してコメントをする