Query pullRequests of the current branch regardless of its state

This commit is contained in:
Toshiya Doi 2020-02-22 16:54:30 +09:00
parent 67e1fbcae5
commit b7893b1fd3

View file

@ -150,6 +150,7 @@ func PullRequests(client *Client, repo ghrepo.Interface, currentPRNumber int, cu
fragment pr on PullRequest {
number
title
state
url
headRefName
headRepositoryOwner {
@ -185,7 +186,7 @@ func PullRequests(client *Client, repo ghrepo.Interface, currentPRNumber int, cu
queryPrefix := `
query($owner: String!, $repo: String!, $headRefName: String!, $viewerQuery: String!, $reviewerQuery: String!, $per_page: Int = 10) {
repository(owner: $owner, name: $repo) {
pullRequests(headRefName: $headRefName, states: OPEN, first: $per_page) {
pullRequests(headRefName: $headRefName, first: $per_page) {
totalCount
edges {
node {