Open zombiezen opened 6 years ago
Don't have a full idea yet, but in doing some absent-minded sketching, a GraphQL query like this might be useful for finding relevant PRs in a project.
query ($repoOwner: String!, $repo: String!, $tok: String, $headRef: String) {
repository(owner: $repoOwner, name: $repo) {
pullRequests(after: $tok, first: 100, headRefName: $headRef, states: [MERGED]) {
nodes {
number
headRepositoryOwner {
login
}
headRefName
headRefOid
mergeCommit {
oid
}
}
pageInfo {
endCursor
hasNextPage
}
}
}
}
Steps to Reproduce
Expected Behavior
evolve
consults the GitHub pull request API to see if the branch corresponding to the pull request was merged, and then advances the ref to themerge_commit_sha
if present locally.Actual Behavior
Nothing happens.