0

How can we find if a pull request had a rebase operation done?

git reflog helps but we want to specifically discover this using Github API.

torek
  • 448,244
  • 59
  • 642
  • 775
Thellimist
  • 3,757
  • 5
  • 31
  • 49
  • 2
    That sort of information is not kept in git and is not shared with github. You might be able to make some assumptions based on the commit tree, but they'll only be assumptions. – evolutionxbox Nov 19 '21 at 10:20
  • Some related ideas here which might help, if the rebased commit were force pushed to github: https://stackoverflow.com/questions/17503226/find-committer-of-a-force-push-on-github – match Nov 19 '21 at 10:28
  • @evolutionxbox could you elaborate what are the assumptions that can be made in what situation? – Thellimist Dec 15 '21 at 07:41
  • You'd need to look at the commit messages. Hopefully github adds some information about the PR in there. I'm not sure how you'd figure out whether the PR was completed with a rebase though. – evolutionxbox Dec 15 '21 at 15:36

0 Answers0