Related: How to get latest commit from a PR merge?
In my situation I’d like the main / master branch to be able to retrieve the Last commit (before the merge commit) after merging to master
So assuming this:
-
Merged #31 from branch-name
to master Last commit in the PR
Normal commit
First commit
I would like to retrieve the Last commit in the PR
when the push.branches: [master]
is running the merged PR.
Ideally, it’d be able handle things gracefully when the PR is merged without a merge commit (via squash or rebase)