Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
2
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

@ymm1x

デプロイ前後の差分をプルリクエスト単位で確認する

二点間のリビジョンの差分をプルリクエスト単位で表示するコマンドです。
<since><until> にデプロイ前後のリビジョンを指定します。
GitHub と Bitbucket 対応。

git log <since>..<until> --merges --grep "pull request" --reverse --pretty=format:"* %s%n %b"

出力例です。

* Merge pull request #1060 from feature/#498-user-create-api
  #498 ユーザ作成APIを実装
* Merge pull request #1061 from feature/#499-fix-user-create-api-bug
  #499 ユーザ作成APIの不具合を修正

マージしたプルリクエストのタイトルとブランチ名を一覧で確認できるので
Slack とかに流すと影響範囲がざっくりと把握できて分かりやすいと思います。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
2
Help us understand the problem. What are the problem?