Skip to content

Commit

Permalink
fix: normalize "List jobs for a workflow run" (`GET /repos/:owner/:re…
Browse files Browse the repository at this point in the history
…po/actions/runs/:run_id/jobs`)
  • Loading branch information
gr2m committed Feb 2, 2020
1 parent b227043 commit 526b365
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/normalize-paginated-list-response.ts
Expand Up @@ -30,6 +30,7 @@ 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_JOBS_FOR_WORKFLOW_RUN_PATH = /^\/repos\/[^/]+\/[^/]+\/actions\/runs\/[^/]+\/jobs/;

export function normalizePaginatedListResponse(
octokit: Octokit,
Expand All @@ -44,7 +45,8 @@ 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_PATH.test(path) &&
!REGEX_IS_ACTIONS_JOBS_FOR_WORKFLOW_RUN_PATH.test(path)
) {
return;
}
Expand Down

0 comments on commit 526b365

Please sign in to comment.