diff --git a/src/github/api.ts b/src/github/api.ts index 434f150..bcfd00f 100644 --- a/src/github/api.ts +++ b/src/github/api.ts @@ -67,7 +67,7 @@ export class GitHubApi { do { match = linkRelPattern.exec(link); logger.debug(match); - if (match && match.groups) { + if (match?.groups) { const params = new URLSearchParams(match.groups.qp); const page = parseInt(params.get("page") ?? ""); const per_page = parseInt(params.get("per_page") ?? ""); diff --git a/src/github/github.ts b/src/github/github.ts index b9ed84b..ef2b0ab 100644 --- a/src/github/github.ts +++ b/src/github/github.ts @@ -51,7 +51,6 @@ export function getIssue(org: string, repo: string, issue: number, skipCache = f return api.getIssue(org, repo, issue, getToken(org), skipCache); } -// TODO: Cache this response export function getMyIssues( params: QueryParams, org?: string, @@ -89,7 +88,6 @@ export function getMyIssues( return api.listIssuesForToken(listParams, account.token, skipCache); } -// TODO: Cache this response export function getIssuesForRepo( params: QueryParams, org: string, @@ -133,7 +131,6 @@ export function getPullRequest( return api.getPullRequest(org, repo, pullRequest, getToken(org), skipCache); } -// TODO: Cache this response export function getPullRequestsForRepo( params: QueryParams, org: string,