Skip to content

Instantly share code, notes, and snippets.

@yukiyan
Created June 7, 2015 16:54
Show Gist options
  • Save yukiyan/63f9603abe6caf4aa969 to your computer and use it in GitHub Desktop.
Save yukiyan/63f9603abe6caf4aa969 to your computer and use it in GitHub Desktop.
コミットハッシュからPR番号割り出すやつ
git log e015e8e..master --merges --ancestry-path --reverse --oneline | head -n1 | awk '{print substr($5, 2)}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment