MCPcopy
hub / github.com/danger/danger-js / getCISourceForEnv

Function getCISourceForEnv

source/ci_source/get_ci_source.ts:12–15  ·  view source on GitHub ↗
(env: Env)

Source from the content-addressed store, hash-verified

10 * @returns {?CISource} a CI source if it's OK, otherwise Danger can't run.
11 */
12export function getCISourceForEnv(env: Env): CISource | undefined {
13 const availableProviders = [...(providers as any)].map((Provider) => new Provider(env)).filter((x) => x.isCI)
14 return availableProviders && availableProviders.length > 0 ? availableProviders[0] : undefined
15}
16
17/**
18 * Gets a CI Source from externally provided provider module.

Callers 15

_semaphore.test.tsFile · 0.90
_vsts.test.tsFile · 0.90
_codefresh.test.tsFile · 0.90
_teamcity.test.tsFile · 0.90
_jenkins.test.tsFile · 0.90
_bitrise.test.tsFile · 0.90
_drone.test.tsFile · 0.90
_gitlab.test.tsFile · 0.90
_circle.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected