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

Function ensureEnvKeysAreInt

source/ci_source/ci_source_helpers.ts:27–29  ·  view source on GitHub ↗
(env: Env, keys: string[])

Source from the content-addressed store, hash-verified

25 * @returns {bool} true if they are all good, false if not
26 */
27export function ensureEnvKeysAreInt(env: Env, keys: string[]): boolean {
28 return keys.every((key: string) => env.hasOwnProperty(key) && !isNaN(parseInt(env[key])))
29}
30
31/**
32 * Retrieves the current pull request open for this branch from an API

Callers 15

isPRMethod · 0.90
isPRMethod · 0.90
isPRMethod · 0.90
isPRMethod · 0.90
isPRMethod · 0.90
isPRMethod · 0.90
isPRMethod · 0.90
pullRequestIDMethod · 0.90
isPRMethod · 0.90
isPRMethod · 0.90
isPRMethod · 0.90
isPRMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected