Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 3

Closed pull requests' commits history

Hi all,


Does someone know how to retrieve all commit's SHA of a closed Pull Request, even though the commits history is lost?
For example, in the Apache/Drill PR 1807 (https://github.com/apache/drill/pull/1807), there were 12 commits before they had squashed.
We know about reflog, however, we need to retrieve this 'lost' data for any GitHub repository. Would it possible?

 

Thanks in advance for your support,

Flavia

2 Replies
Community Manager
Message 2 of 3

Re: Closed pull requests' commits history

Hi @flaviacoelho, Thanks for being here. In GitHub PR's are also considered issues.Fetching the Issue Events for any Pull Request. With that, there will be a commit_id.

I hope this helps!

 


Best,
AndreaG

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Copilot Lvl 2
Message 3 of 3

Re: Closed pull requests' commits history

Hi @AndreaGriffiths11. Thanks for your remarks. I've been trying to gather the commit's history (before the merged event) from that commit_id, but there's no success - searching on public repositories. Is there any 'default' event before a merged event (to all PRs), from that I could fetch the last commit before a merged action, at least?

 

Best,

Flavia