From 4bc8ec4041dbfa09aba3fe85cf60556b219f47f5 Mon Sep 17 00:00:00 2001 From: tidy-dev Date: Tue, 9 Nov 2021 09:51:48 -0500 Subject: [PATCH] Feature flag action log retrieval --- app/src/lib/ci-checks/ci-checks.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/src/lib/ci-checks/ci-checks.ts b/app/src/lib/ci-checks/ci-checks.ts index 83afb11a27c..d0f05874292 100644 --- a/app/src/lib/ci-checks/ci-checks.ts +++ b/app/src/lib/ci-checks/ci-checks.ts @@ -11,6 +11,7 @@ import { } from '../api' import JSZip from 'jszip' import moment from 'moment' +import { enableCICheckRunsLogs } from '../feature-flag' /** * A Desktop-specific model closely related to a GitHub API Check Run. @@ -422,6 +423,20 @@ export async function getLatestPRWorkflowRunsLogsForCheckRun( continue } + if (!enableCICheckRunsLogs()) { + mappedCheckRuns.push({ + ...cr, + htmlUrl: matchingJob.html_url, + output: { + ...cr.output, + type: RefCheckOutputType.Actions, + steps: matchingJob.steps, + }, + }) + + continue + } + // One workflow can have the logs for multiple check runs.. no need to // keep retrieving it. So we are hashing it. const logZip =