I was wondering if it’s possible to get a pull request associated with a commit. With a merge-commit or squash-merging I can infer the associated pull request from the commit message, but in the case of rebase-merging the commits are directly appended to the master branch which makes this impossible.
It seems like GitHub has a way of associating commits that have been merged using rebase-merging as can be seen in the following screenshot (all appended commits show this):
I’ve been digging through the V4 and V3 API but I couldn’t find a way to associate commits with a PR. Is this somehow possible?
For more context: I’m currently working on supporting rebase-merging in Release Drafter (https://github.com/toolmantim/release-drafter/issues/106).