0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Gitで最新と一つ前のtagの間のマージログを出力する

Posted at

Gitでreleaseノートを作るときなどに、直近マージしたPR一覧を出したいことがあります。

そういうときにこちらのコマンドで一覧が取得できます。

git log $(git tag --sort version:refname | tail -n 2 | head -n 1)..$(git tag --sort version:refname | tail -n 1) --merges --reverse --pretty=format:"* %b"

こちらのコマンドでは最新と一つ前のtagの間のマージのログを出力します。

Github Actionsも用意しましたのでRelease Note自動化の際にご活用いただけると幸いです。

参考

0
1
0

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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?