Skip to content

Commit

Permalink
Get only owner's issues
Browse files Browse the repository at this point in the history
Hello!

I changed the API request to get only issues form the user that is in the config file.
  • Loading branch information
AngCosmin committed Jan 22, 2020
1 parent c4feba0 commit e0354f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/githubApis.ts
Expand Up @@ -45,7 +45,7 @@ export function getIssue(id: number) {
}

export function listIssues(page: number) {
const query = `q=state:open+repo:${config.repo}&sort=created&order=desc&page=${page}&per_page=${config.pageSize}`
const query = `q=state:open+repo:${config.repo}+author:${config.username}&sort=created&order=desc&page=${page}&per_page=${config.pageSize}`

return fetch(
`${base}/search/issues?${query}`,
Expand Down

0 comments on commit e0354f2

Please sign in to comment.