-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get true PR pushed_at datetime #271
Conversation
|
github_api/prs.py
Outdated
# | ||
# using all of these facts, we are able to determine the true, reliable, | ||
# last update time of the branch backing a PR | ||
github_test_merge_commit = pr_data["merge_commit_sha"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't exist until GitHub is done checking for conflicts. This function should return None in that case, and the callers should be updated accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beat me to it 😜
github_api/prs.py
Outdated
# using all of these facts, we are able to determine the true, reliable, | ||
# last update time of the branch backing a PR | ||
github_test_merge_commit = pr_data["merge_commit_sha"] | ||
commit = commits.get_commit(api, urn, github_test_merge_commit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The linked docs don't say so, but is it seems possible that there might not be a "merge_commit_sha"
before GitHub has tested for mergeability or even while it's doing so. Since you don't account for that, have you tested this?
@PlasmaPower That post says at the top they decided not to deprecate it for the REST API. Or is that supposed to really slight warning since they had it deprecated in the past? |
@reddraggone9 Pretty much that that. GitHub considers the API not well designed, so it might be deleted with the v4 api or something. |
Alright, handling |
Neat. Comments have some grammar issues (oh hey, you caught one while I was typing!), but it looks good. 👍 |
|
🙆♀️ PR passed with a vote of 11 for and 0 against, with a weighted total of 11.0 and a threshold of 6.1. See merge-commit ef69d70 for more details. |
Seems like there are some issues with relying on |
This should fix a number of issues, but it needs sanity checking. Underlying issue mentioned #199 and #147 and #239 (comment)