Skip to content

Commit

Permalink
Feature flag action log retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
tidy-dev committed Nov 9, 2021
1 parent 915b6da commit 4bc8ec4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/src/lib/ci-checks/ci-checks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 =
Expand Down

0 comments on commit 4bc8ec4

Please sign in to comment.