Query pullRequests of the current branch regardless of its state
This commit is contained in:
parent
67e1fbcae5
commit
b7893b1fd3
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue