Fix issues order
This commit is contained in:
parent
cf1feb847e
commit
875352a03c
1 changed files with 3 additions and 3 deletions
|
|
@ -56,7 +56,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) {
|
||||
issues(filterBy: {assignee: $viewer}, first: $per_page, orderBy: {field: CREATED_AT, direction: DESC}) {
|
||||
edges {
|
||||
node {
|
||||
...issue
|
||||
|
|
@ -65,7 +65,7 @@ func Issues(client *Client, ghRepo Repo, currentUsername string) (*IssuesPayload
|
|||
}
|
||||
}
|
||||
mentioned: repository(owner: $owner, name: $repo) {
|
||||
issues(filterBy: {mentioned: $viewer}, first: $per_page) {
|
||||
issues(filterBy: {mentioned: $viewer}, first: $per_page, orderBy: {field: CREATED_AT, direction: DESC}) {
|
||||
edges {
|
||||
node {
|
||||
...issue
|
||||
|
|
@ -74,7 +74,7 @@ func Issues(client *Client, ghRepo Repo, currentUsername string) (*IssuesPayload
|
|||
}
|
||||
}
|
||||
recent: repository(owner: $owner, name: $repo) {
|
||||
issues(filterBy: {since: $since, orderBy: {field: CREATED_AT, direction: DESC}}, first: $per_page) {
|
||||
issues(filterBy: {since: $since}, first: $per_page, orderBy: {field: CREATED_AT, direction: DESC}) {
|
||||
edges {
|
||||
node {
|
||||
...issue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue