Merge pull request #87 from github/issue-status-open

Include open issues only in `issue status`
This commit is contained in:
Nate Smith 2019-11-18 12:13:27 -06:00 committed by GitHub
commit dc4820a27f

View file

@ -172,7 +172,7 @@ func Issues(client *Client, ghRepo Repo, currentUsername string) (*IssuesPayload
}
query($owner: String!, $repo: String!, $since: DateTime!, $viewer: String!, $per_page: Int = 10) {
assigned: repository(owner: $owner, name: $repo) {
issues(filterBy: {assignee: $viewer}, first: $per_page, orderBy: {field: CREATED_AT, direction: DESC}) {
issues(filterBy: {assignee: $viewer, states: OPEN}, first: $per_page, orderBy: {field: CREATED_AT, direction: DESC}) {
edges {
node {
...issue
@ -181,7 +181,7 @@ func Issues(client *Client, ghRepo Repo, currentUsername string) (*IssuesPayload
}
}
mentioned: repository(owner: $owner, name: $repo) {
issues(filterBy: {mentioned: $viewer}, first: $per_page, orderBy: {field: CREATED_AT, direction: DESC}) {
issues(filterBy: {mentioned: $viewer, states: OPEN}, first: $per_page, orderBy: {field: CREATED_AT, direction: DESC}) {
edges {
node {
...issue
@ -190,7 +190,7 @@ func Issues(client *Client, ghRepo Repo, currentUsername string) (*IssuesPayload
}
}
recent: repository(owner: $owner, name: $repo) {
issues(filterBy: {since: $since}, first: $per_page, orderBy: {field: CREATED_AT, direction: DESC}) {
issues(filterBy: {since: $since, states: OPEN}, first: $per_page, orderBy: {field: CREATED_AT, direction: DESC}) {
edges {
node {
...issue