Skip to content

Commit

Permalink
fix: normalize "List workflow runs" (`GET /repos/:owner/:repo/actions…
Browse files Browse the repository at this point in the history
…/workflows/:workflow_id/runs`)
  • Loading branch information
gr2m committed Feb 2, 2020
1 parent 1434454 commit 6b948c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/normalize-paginated-list-response.ts
Expand Up @@ -29,7 +29,7 @@ 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/;
const REGEX_IS_ACTIONS_SECRETS_PATH = /^\/repos\/[^/]+\/[^/]+\/actions\/secrets/;
const REGEX_IS_ACTIONS_WORKFLOWS_PATH = /^\/repos\/[^/]+\/[^/]+\/actions\/workflows/;
const REGEX_IS_ACTIONS_WORKFLOWS_OR_RUNS_PATH = /^\/repos\/[^/]+\/[^/]+\/actions\/workflows/;
const REGEX_IS_ACTIONS_JOBS_FOR_WORKFLOW_RUN_PATH = /^\/repos\/[^/]+\/[^/]+\/actions\/runs\/[^/]+\/jobs/;

export function normalizePaginatedListResponse(
Expand All @@ -45,7 +45,7 @@ export function normalizePaginatedListResponse(
!REGEX_IS_USER_INSTALLATIONS_PATH.test(path) &&
!REGEX_IS_ACTIONS_ARTIFACTS_PATH.test(path) &&
!REGEX_IS_ACTIONS_SECRETS_PATH.test(path) &&
!REGEX_IS_ACTIONS_WORKFLOWS_PATH.test(path) &&
!REGEX_IS_ACTIONS_WORKFLOWS_OR_RUNS_PATH.test(path) &&
!REGEX_IS_ACTIONS_JOBS_FOR_WORKFLOW_RUN_PATH.test(path)
) {
return;
Expand Down

0 comments on commit 6b948c2

Please sign in to comment.