This graphQL query gets the merge commit sha, which is what github uses internally on PRs. Would be nice if this was available to keep things consistent.
{
viewer {
login
}
repository(name: "dbt", owner: "vidahealth") {
pullRequest(number: 1843) {
potentialMergeCommit {
oid
}
}
}
}
This sha is useful for file diffs with out having to retrieving an extended git commit history.
This graphQL query gets the merge commit sha, which is what github uses internally on PRs. Would be nice if this was available to keep things consistent.
This sha is useful for file diffs with out having to retrieving an extended git commit history.