Skip to content

Issue with fetching the latest PR commits #21553

Answered by lee-dohm
vamche asked this question in New to GitHub
Discussion options

You must be logged in to vote

Thanks for asking!

It looks like you’re trying to get the latest commits on a PR by fetching the merge ref for the PR. Unfortunately, while the existence of the PR refs is well-known, we don’t make any guarantees about their operation. When a PR is updated, the merge ref is updated lazily and some changes may have happened in the last week that have made it update more lazily than in the past.

What is your ultimate goal here? Would using the GitHub API be a more reliable way of getting the information you’re looking for?

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants