MCPcopy Create free account

hub / github.com/danger/peril / functions

Functions237 in github.com/danger/peril

↓ 34 callersFunctiondangerRunForRules
( event: string, action: string | null, rules: RunnerRuleset | undefined | null, webhook: any, prefi
api/source/danger/danger_run.ts:69
↓ 29 callersFunctiongetDB
()
api/source/db/getDB.ts:42
↓ 24 callersFunctiongetEnv
* Pulls out an env var from either the host ENV, or a config file * * @param {string} local ENV key * @param {string} configName Config key * @ret
api/source/globals.ts:13
↓ 16 callersFunctiondangerRepresentationForPath
(value: DangerfileReferenceString)
api/source/danger/danger_run.ts:167
↓ 16 callersMethodon
(key: string, func: any)
api/source/tasks/_tests/_startTaskScheduler.test.ts:12
↓ 15 callersFunctiongenerateInstallation
(diff: Partial<GitHubInstallation>)
api/source/testing/installationFactory.ts:22
↓ 14 callersFunctionauthD
(resolver: Resolver)
api/source/api/graphql/utils/auth.ts:8
↓ 14 callersFunctionsetupForRequest
(req: express.Request, installationSettings: any)
api/source/github/events/github_runner.ts:72
↓ 12 callersFunctionexecutorForInstallation
(platform: Platform, runner: DangerRunner, options: GitHubInstallationSettings)
api/source/danger/danger_runner.ts:155
↓ 10 callersFunctioncreatePerilUserJWT
(user: PerilOAuthUser, installationIDs: number[])
api/source/api/auth/generate.ts:31
↓ 10 callersFunctiongetDetailsFromPerilJWT
(token: PerilUserJWT)
api/source/api/auth/generate.ts:49
↓ 9 callersFunctiongql
(strings: any, ...keys: any[])
api/source/api/graphql/gql.ts:6
↓ 8 callersFunctionfixturedAPI
(repoSlug?: string, pullRequestID?: string)
api/source/api/_tests/fixtureAPI.ts:20
↓ 8 callersFunctiongetGitHubFileContents
( token: string | null, repoSlug: string, path: string, ref: string | null, showError: boolean = tru
api/source/github/lib/github_helpers.ts:33
↓ 8 callersFunctiongetTemporaryAccessTokenForInstallation
(installationId: number)
api/source/api/github.ts:7
↓ 8 callersFunctionrunDangerAgainstFileInline
( filepath: string[], contents: string[], installationRun: InstallationToRun, exec: Executor, peril:
api/source/danger/danger_runner.ts:100
↓ 7 callersFunctiongetPerilPlatformForDSL
(type: RunType, github: GitHubType | null, githubEvent: any)
api/source/danger/peril_platform.ts:18
↓ 7 callersFunctionreplaceAllKeysInString
(obj: any, message: string)
api/source/infrastructure/installationSlackMessaging.ts:11
↓ 7 callersFunctionrunEventRun
( eventName: string, runs: DangerRun[], settings: GitHubRunSettings, token: string, event: any )
api/source/github/events/handlers/event.ts:10
↓ 6 callersFunctionactionForWebhook
(webhook: any)
api/source/github/events/utils/actions.ts:5
↓ 6 callersFunctionconfirmAccessToJWT
(iID: number, jwt: string)
api/source/api/graphql/mutations/mutations.ts:20
↓ 6 callersFunctionfetch
(url: string | node_fetch.Request, init?: node_fetch.RequestInit)
api/source/api/fetch.ts:36
↓ 6 callersFunctionlog
(message: string)
api/source/github/events/github_runner.ts:42
↓ 6 callersFunctionrunPRRun
( eventName: string, runs: DangerRun[], settings: GitHubRunSettings, token: string, pr: Pull_request
api/source/github/events/handlers/pr.ts:11
↓ 6 callersFunctionrunsForEvent
( event: string, action: string | null, installation: GitHubInstallation, webhook: any, settings: Gi
api/source/github/events/github_runner.ts:140
↓ 5 callersFunctionappendPerilContextToDSL
( installationID: number, authToken: string | undefined, sandbox: DangerContext, peril: PerilDSL )
api/source/danger/append_peril.ts:91
↓ 5 callersFunctiondslTypeForEvent
(event: string)
api/source/danger/danger_run.ts:179
↓ 5 callersFunctioneveryTZ
(key: InstallationSchedulerKeys, interval: string, timezone: string)
api/source/tasks/startTaskScheduler.ts:47
↓ 5 callersFunctiongithubAPIForCommentable
(token: string, repoSlug: string, issueNumber: number | null)
api/source/github/events/utils/commenting.ts:45
↓ 5 callersFunctioninstallationSettingsUpdater
( event: string, req: express.Request, _: express.Response, __: any )
api/source/plugins/installationSettingsUpdater.ts:11
↓ 5 callersFunctionrequestWithFixturedJSON
(path: string)
api/source/api/_tests/fixtureAPI.ts:11
↓ 5 callersFunctionwithLayout
(WrappedComponent: React.ComponentType<P>)
web/src/components/Layout.tsx:63
↓ 4 callersFunctionconvertDBRepresentationToModel
(installation: GitHubInstallation)
api/source/db/mongo.ts:74
↓ 4 callersFunctioncustomGitHubResolveRequest
(token: string)
api/source/runner/customGitHubRequire.ts:32
↓ 4 callersFunctionfixture
(file: string)
api/source/github/events/handlers/_tests/_events.test.ts:36
↓ 4 callersFunctiongetGitHubFileContentsFromLocation
( token: string | null, location: RepresentationForURL, defaultRepo: string )
api/source/github/lib/github_helpers.ts:20
↓ 4 callersFunctiongetSettings
(overwrites: Partial<GitHubRunSettings>)
api/source/github/events/_tests/_github_runner-runs.test.ts:31
↓ 4 callersFunctiongetUserInstallations
(jwt: string)
api/source/api/graphql/utils/installations.ts:5
↓ 4 callersFunctioninitEnvironment
()
dashboard/src/lib/createRelayEnvironment.ts:36
↓ 4 callersFunctioninstallationLifeCycle
(event: string, req: express.Request, res: express.Response, ___: any)
api/source/plugins/installationLifeCycle.ts:7
↓ 4 callersFunctionjsonDatabase
(dangerFilePath: DangerfileReferenceString)
api/source/db/json.ts:35
↓ 4 callersFunctionlog
(message: string)
api/source/index.ts:8
↓ 4 callersFunctionperilObjectForInstallation
( installation: InstallationToRun, environment: any, sandboxSettings?: PerilRunnerBootstrapJSON )
api/source/danger/append_peril.ts:121
↓ 4 callersFunctionrunDangerForInstallation
( eventName: string, contents: string[], references: DangerfileReferenceString[], api: GitHubAPI | nul
api/source/danger/danger_runner.ts:47
↓ 4 callersFunctionsendSlackMessageToInstallation
(message: string, installation: GitHubInstallation)
api/source/infrastructure/installationSlackMessaging.ts:38
↓ 4 callersFunctionsendSlackMessageToInstallationID
(message: string, iID: number)
api/source/infrastructure/installationSlackMessaging.ts:26
↓ 4 callersFunctionvalidatesGithubWebhook
(_: string, req: express.Request, res: express.Response, __: any)
api/source/plugins/validatesGithubWebhook.ts:3
↓ 3 callersFunctionapi
* A quick GitHub API client
api/source/github/lib/github_helpers.ts:92
↓ 3 callersFunctioncreateMockResponse
()
api/source/routing/_tests/create-mock-response.ts:3
↓ 3 callersFunctionencodeToQueryParams
(data: any)
api/source/api/auth/github.ts:10
↓ 3 callersFunctionevery
(key: InstallationSchedulerKeys, interval: string)
api/source/tasks/startTaskScheduler.ts:39
↓ 3 callersFunctionfixture
(file: string)
api/source/github/events/_tests/_github_runner-prs.test.ts:27
↓ 3 callersFunctiongenerateData
web/test/gatsby-node.test.js:118
↓ 3 callersFunctiongenerateTaskSchedulerForInstallation
( installationID: number, sandboxSettings?: PerilRunnerBootstrapJSON )
api/source/tasks/scheduleTask.ts:6
↓ 3 callersFunctiongithubDangerRunner
(event: string, req: express.Request, res: express.Response, next: any)
api/source/github/events/github_runner.ts:98
↓ 3 callersFunctionoctokitForInstallation
(installationID: number)
api/source/api/graphql/github/api.ts:4
↓ 3 callersFunctionprepareToSave
(installation: Partial<GitHubInstallation>)
api/source/db/mongo.ts:64
↓ 3 callersFunctionrequestWithFixturedJSON
(name: string)
api/source/plugins/_tests/_installationSettingsUpdater.test.ts:17
↓ 3 callersFunctionrunTaskForInstallation
(installation: GitHubInstallation, task: string, data: any)
api/source/tasks/startTaskScheduler.ts:101
↓ 3 callersFunctionshouldUseGitHubOverride
(request: string, parent: NodeModule)
api/source/runner/customGitHubRequire.ts:15
↓ 2 callersFunctioncreatePerilSandboxAPIJWT
(installationID: number, actions: string[])
api/source/runner/sandbox/jwt.ts:24
↓ 2 callersFunctiondangerRepresentationForPath
(value: string)
dashboard/src/components/installation/Websocket.tsx:147
↓ 2 callersFunctionfixture
(file: string)
api/source/github/events/handlers/_tests/_pr-create-fixture.test.ts:43
↓ 2 callersFunctiongetDetailsFromPerilSandboxAPIJWT
(token: PerilSandboxAuthJWT)
api/source/runner/sandbox/jwt.ts:42
↓ 2 callersFunctiongetIssueNumber
(json: any)
api/source/github/events/utils/commenting.ts:34
↓ 2 callersFunctiongetJWTFromRequest
(req: any)
api/source/api/auth/getJWTFromRequest.ts:6
↓ 2 callersFunctiongetRecordedWebhook
(installationID: number, eventID: string)
api/source/plugins/utils/recordWebhookWithRequest.ts:73
↓ 2 callersFunctiongithubRouter
(req: Request, res: Response, next: NextFunction)
api/source/routing/router.ts:11
↓ 2 callersFunctiongraphqlAPI
(url: string, query: string)
api/source/api/graphql/api.ts:4
↓ 2 callersFunctioninfo
(message: string)
api/source/db/json.ts:30
↓ 2 callersFunctionisActive
(item: MenuItem)
web/src/components/SidebarMenu/SidebarMenu.tsx:17
↓ 2 callersFunctionminiGHAPI
(path: string, token: string)
api/source/api/auth/github.ts:107
↓ 2 callersFunctionoctokitAPIForPeril
(installationID: number, authToken: string | undefined)
api/source/danger/append_peril.ts:27
↓ 2 callersFunctionpostResultsCall
( url: string, jwt: string, name: string, dangerfiles: string[], time: number, hyperID: string )
api/source/runner/run.ts:216
↓ 2 callersFunctionqueryInstallation
(id: number)
api/source/api/graphql/_tests/_graphql.test.ts:106
↓ 2 callersFunctionregisterValidSW
(swUrl: string, config?: Config)
dashboard/src/serviceWorker.ts:65
↓ 2 callersMethodrender
()
dashboard/src/App.tsx:12
↓ 2 callersFunctionrequestWithFixturedJSON
(name: string)
api/source/github/events/_tests/_github_runner-setup.test.ts:12
↓ 2 callersFunctionrunSchedulerFunc
(key: InstallationSchedulerKeys)
api/source/tasks/startTaskScheduler.ts:129
↓ 2 callersFunctionsendMessageToConnectionsWithAccessToInstallation
(iID: number, message: MSGMessages)
api/source/api/api.ts:141
↓ 2 callersFunctionstartTaskScheduler
()
api/source/tasks/startTaskScheduler.ts:22
↓ 2 callersFunctionstubSandbox
()
api/source/danger/_tests/sandbox_stub.ts:1
↓ 2 callersMethodsubmitTaskMutation
()
dashboard/src/components/installation/TaskRunner.tsx:36
↓ 2 callersFunctiontransformKeys
(obj: any, before1: string, after1: string, before2: string, after2: string)
api/source/db/mongo.ts:92
↓ 2 callersFunctiontriggerAFutureDangerRun
(when: string, config: DangerFileTaskConfig)
api/source/tasks/startTaskScheduler.ts:167
↓ 2 callersFunctionvalidRequestWithEvent
(header: string)
api/source/routing/_tests/_router.test.ts:18
↓ 2 callersFunctionvalidates
(keys: string[])
api/source/globals.ts:17
↓ 1 callersFunctionalwaysArray
(t: any)
api/source/danger/danger_run.ts:131
↓ 1 callersFunctionbringBackDots
(obj: object)
api/source/db/mongo.ts:90
↓ 1 callersFunctioncanUserWriteToRepo
(token: string, user: string, repoSlug: string)
api/source/github/lib/github_helpers.ts:7
↓ 1 callersFunctioncheckValidServiceWorker
(swUrl: string, config?: Config)
dashboard/src/serviceWorker.ts:109
↓ 1 callersFunctioncleanArray
web/gatsby-node.js:10
↓ 1 callersFunctioncommentOnResults
( dslType: RunType, results: DangerResults, token: string, settings: GitHubRunSettings, installation
api/source/github/events/utils/commenting.ts:16
↓ 1 callersFunctionconnectedEvent
(event: MSGConnected)
dashboard/src/components/installation/Websocket.tsx:168
↓ 1 callersFunctioncreateInstallation
(installationJSON: Installation, _: express.Request, res: express.Response)
api/source/github/events/create_installation.ts:8
↓ 1 callersFunctioncreateLambdaFunctionForInstallation
(installationName: string)
api/source/api/aws/lambda.ts:5
↓ 1 callersFunctioncreatePRDSL
(githubAPI: GitHubAPI)
api/source/github/events/createPRDSL.ts:15
↓ 1 callersFunctioncreatePRJSONDSL
(githubAPI: GitHubAPI)
api/source/github/events/createPRDSL.ts:30
↓ 1 callersFunctioncustomLoginRedirect
(url: string)
dashboard/src/lib/routes.ts:11
↓ 1 callersFunctiondangerRepresentationForPath
(value: string)
dashboard/src/lib/dangerfileReferenceURLs.ts:13
next →1–100 of 237, ranked by callers