Skip to content

Commit

Permalink
fix: normalize "List workflow run artifacts" (`GET /repos/:owner/:rep…
Browse files Browse the repository at this point in the history
…o/actions/runs/:run_id/artifacts`)
  • Loading branch information
gr2m committed Feb 2, 2020
1 parent c443cc3 commit 24f40f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/normalize-paginated-list-response.ts
Expand Up @@ -27,6 +27,7 @@ const REGEX_IS_SEARCH_PATH = /^\/search\//;
const REGEX_IS_CHECKS_PATH = /^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)/;
const REGEX_IS_INSTALLATION_REPOSITORIES_PATH = /^\/installation\/repositories/;
const REGEX_IS_USER_INSTALLATIONS_PATH = /^\/user\/installations/;
const REGEX_IS_ACTIONS_ARTIFACTS_PATH = /^\/repos\/[^/]+\/[^/]+\/actions\/runs\/[^/]+\/artifacts/;

export function normalizePaginatedListResponse(
octokit: Octokit,
Expand All @@ -38,7 +39,8 @@ export function normalizePaginatedListResponse(
!REGEX_IS_SEARCH_PATH.test(path) &&
!REGEX_IS_CHECKS_PATH.test(path) &&
!REGEX_IS_INSTALLATION_REPOSITORIES_PATH.test(path) &&
!REGEX_IS_USER_INSTALLATIONS_PATH.test(path)
!REGEX_IS_USER_INSTALLATIONS_PATH.test(path) &&
!REGEX_IS_ACTIONS_ARTIFACTS_PATH.test(path)
) {
return;
}
Expand Down

0 comments on commit 24f40f8

Please sign in to comment.