Fix query parameter name

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
This commit is contained in:
Babak K. Shandiz 2024-05-09 20:42:46 +01:00
parent 8f8c775cee
commit 78091c4aff
No known key found for this signature in database
GPG key ID: 44950AED81AD710F

View file

@ -716,7 +716,7 @@ type RefComparison struct {
}
func ComparePullRequestBaseBranchWith(client *Client, repo ghrepo.Interface, prNumber int, headRef string) (*RefComparison, error) {
query := `query ComparePullRequestBaseBranchWith($owner: String!, $repo: String!, $pr_number: Int!, $headRef: String!) {
query := `query ComparePullRequestBaseBranchWith($owner: String!, $repo: String!, $pullRequestNumber: Int!, $headRef: String!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $pullRequestNumber) {
baseRef {