-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upload: Query head oid of a PR via commits
The headRefOid field of a PR actually contains the oid of whatever the tot of that branch name is, which may not be the commit that is actually associated with the pr if it has been merged. To get that correct, we have to query the actual commit list. This handles a corner case in reordering PRs with the repo's merge setting as rebase. Somehow this causes one of the reordered PRs to get merged with 0 commmits, which later causes us to not re-make prs. With this change, we'll always succeed in remaking prs if they are erroneously closed or merged on a reorder. Avoiding having them get closed is a follow-up change. Topic: query1 Reviewers: aaron, brian-k
- Loading branch information
1 parent
0d7e5d3
commit 4933e4f
Showing
2 changed files
with
38 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters