MCPcopy Index your code

hub / github.com/danger/danger-js / functions

Functions621 in github.com/danger/danger-js

↓ 60 callersFunctionensureEnvKeysExist
(env: Env, keys: string[])
source/ci_source/ci_source_helpers.ts:17
↓ 33 callersFunctiondebug
(value: string)
source/debug.ts:3
↓ 32 callersMethodget
Make a get call against the bitbucket server API
source/dsl/BitBucketCloudDSL.ts:23
↓ 31 callersFunctioncreateNormalChange
(ln1: number, ln2: number)
source/platforms/gitlab/_tests/_inline_position_parser.test.ts:25
↓ 27 callersMethoddiffForFile
* Offers the diff for a specific file * * @param {string} filename the path to the json file
source/dsl/GitDSL.ts:150
↓ 27 callersMethodhandleResults
* Handle the message aspects of running a Dangerfile * * @param {DangerResults} results a JSON representation of the end-state for a Danger run
source/runner/Executor.ts:139
↓ 27 callersFunctionpullRequestParser
(address: string)
source/platforms/pullRequestParser.ts:14
↓ 25 callersFunctiondefaultDsl
(platform: any)
source/runner/_tests/_executor.test.ts:39
↓ 23 callersFunctionensureEnvKeysAreInt
(env: Env, keys: string[])
source/ci_source/ci_source_helpers.ts:27
↓ 23 callersFunctiongetCISourceForEnv
(env: Env)
source/ci_source/get_ci_source.ts:12
↓ 21 callersFunctiongitJSONToGitDSL
(gitJSONRep: GitJSONDSL, config: GitJSONToGitDSLConfig)
source/platforms/git/gitJSONToGitDSL.ts:46
↓ 21 callersFunctionwarn
(message: MarkdownString, file?: string, line?: number)
source/runner/Dangerfile.ts:116
↓ 20 callersMethodgetPlatformReviewDSLRepresentation
()
source/platforms/LocalGit.ts:40
↓ 17 callersMethodgetPullRequestInfo
()
source/platforms/_tests/_github.test.ts:14
↓ 16 callersFunctioncreateAddChange
(ln: number)
source/platforms/gitlab/_tests/_inline_position_parser.test.ts:35
↓ 14 callersFunctionn
Normalizes path to platform-specific
source/runner/runners/utils/_tests/_transpiler.test.ts:34
↓ 14 callersFunctionrequestWithFixturedJSON
(path: string)
source/platforms/github/_tests/_github_git.test.ts:22
↓ 13 callersFunctiondangerRunToRunnerCLI
(argv: string[])
source/commands/utils/dangerRunToRunnerCLI.ts:5
↓ 13 callersFunctionrunRunner
(app: SharedCLI, config?: Partial<RunnerConfig>)
source/commands/ci/runner.ts:29
↓ 12 callersFunctiontemplate
(dangerID: string, results: DangerResults, commitID?: string)
source/runner/templates/bitbucketCloudTemplate.ts:55
↓ 12 callersMethodupdateStatus
()
source/platforms/LocalGit.ts:103
↓ 11 callersMethodgetPullRequestComments
()
source/platforms/_tests/_bitbucket_server.test.ts:26
↓ 11 callersMethodpost
Make a post call against the bitbucket server API
source/dsl/BitBucketCloudDSL.ts:26
↓ 11 callersFunctionsetupCodeBuildSource
(env: Record<string, unknown>)
source/ci_source/providers/_tests/_codebuild.test.ts:12
↓ 10 callersMethodgetPullRequestCommits
()
source/platforms/_tests/_github.test.ts:23
↓ 10 callersFunctionresultsIntoInlineResults
(results: DangerResults)
source/dsl/DangerResults.ts:248
↓ 9 callersFunctiondirContains
(rootDir: string, dir: string)
source/runner/runners/utils/transpiler.ts:78
↓ 9 callersMethodgetPRBasePath
(service = "api")
source/platforms/bitbucket_server/BitBucketServerAPI.ts:68
↓ 9 callersMethodgetPRURL
()
source/platforms/bitbucket_cloud/BitBucketCloudAPI.ts:109
↓ 9 callersMethodgetPlatformGitRepresentation
()
source/platforms/LocalGit.ts:44
↓ 9 callersFunctioninlinePositionParser
(structuredDiff: StructuredDiff, path: string, line: number)
source/platforms/gitlab/inlinePositionParser.ts:22
↓ 9 callersFunctionisInline
(violation: Violation)
source/dsl/Violation.ts:23
↓ 9 callersFunctionmockApi
(withExisting = false)
source/platforms/_tests/_gitlab.test.ts:54
↓ 9 callersFunctionmockNote
( id: number, authorId: number, body = "", resolved = false, type: "DiffNote" | "DiscussionNote" | n
source/platforms/_tests/_gitlab.test.ts:17
↓ 9 callersFunctionthrowIfNotOk
(res: FetchResponse)
source/platforms/bitbucket_server/BitBucketServerAPI.ts:376
↓ 8 callersFunctionapi
( url: string | Request, init: RequestInit, suppressErrorReporting?: boolean, processEnv: NodeJS.Proce
source/api/fetch.ts:60
↓ 8 callersFunctionbitBucketCloudRawAndDateToGitCommitAuthor
(raw: string, date: string)
source/platforms/bitbucket_cloud/BitBucketCloudGit.ts:11
↓ 8 callersMethodgetFileContents
Gets the contents of a file from a repo (defaults to yours)
source/dsl/BitBucketCloudDSL.ts:20
↓ 8 callersFunctionloadFixture
(path: string)
source/platforms/gitlab/_tests/_gitlab_api.test.ts:14
↓ 8 callersFunctionmessage
( message: MarkdownString, opts?: string | { file?: string; line?: number; icon?: MarkdownString },
source/runner/Dangerfile.ts:118
↓ 8 callersFunctionschedule
(fn: any)
source/runner/Dangerfile.ts:114
↓ 8 callersFunctionsentence
(array: string[])
source/runner/DangerUtils.ts:4
↓ 8 callersFunctiontemplate
(dangerID: string, results: DangerResults, commitID?: string)
source/runner/templates/bitbucketServerTemplate.ts:77
↓ 8 callersFunctionthrowIfNotOk
(res: FetchResponse)
source/platforms/bitbucket_cloud/BitBucketCloudAPI.ts:413
↓ 7 callersMethodJSONDiffForFile
* Provides a simplified JSON diff between the two versions of a JSON file. This will always * be an object whose keys represent what has changed in
source/dsl/GitDSL.ts:187
↓ 7 callersFunctiondangerRepresentationForPath
(value: string)
source/platforms/github/customGitHubRequire.ts:27
↓ 7 callersFunctiondangerSignaturePostfix
(results: DangerResults, commitID?: string)
source/runner/templates/bitbucketServerTemplate.ts:53
↓ 7 callersFunctiondangerfilePath
(program: any)
source/commands/utils/fileUtils.ts:10
↓ 7 callersFunctioninlineResultsIntoResults
(inlineResults: DangerInlineResults)
source/dsl/DangerResults.ts:281
↓ 7 callersFunctioninlineTemplate
(dangerID: string, results: DangerResults, file: string, line: number)
source/runner/templates/bitbucketCloudTemplate.ts:77
↓ 7 callersFunctionjsonToDSL
(dsl: DangerDSLJSONType, source: CISource)
source/runner/jsonToDSL.ts:29
↓ 7 callersFunctionmockDiscussion
(id: string, notes: Types.DiscussionNoteSchema[])
source/platforms/_tests/_gitlab.test.ts:49
↓ 7 callersFunctionrequestWithFixturedJSON
(path: string)
source/platforms/bitbucket_server/_tests/_bitbucket_server_git.test.ts:21
↓ 7 callersMethodstructuredDiffForFile
* Offers the structured diff for a specific file * * @param {string} filename the path to the json file
source/dsl/GitDSL.ts:157
↓ 6 callersFunctioncreateChunk
(changes: Change[], oldStart: number, oldLines: number, newStart: number, newLines: number)
source/platforms/gitlab/_tests/_inline_position_parser.test.ts:14
↓ 6 callersFunctiondangerSignaturePostfix
(results: DangerResults, commitID?: string)
source/runner/templates/bitbucketCloudTemplate.ts:24
↓ 6 callersFunctiongetPlatformForEnv
(env: Env, source: CISource)
source/platforms/platform.ts:106
↓ 6 callersMethodgetReviewInfo
()
source/platforms/LocalGit.ts:109
↓ 6 callersFunctionjsonDSLGenerator
( platform: Platform, source: CISource, program: CommanderStatic )
source/runner/dslGenerator.ts:8
↓ 6 callersFunctionjsonToContext
( JSONString: string, program: CommanderStatic, source: CISource )
source/runner/jsonToContext.ts:15
↓ 6 callersFunctionrequestWithFixturedJSON
(path: string)
source/platforms/_tests/_github.test.ts:9
↓ 6 callersFunctionrequestWithFixturedJSON
(path: string)
source/platforms/_tests/_bitbucket_server.test.ts:9
↓ 6 callersFunctionrequestWithFixturedJSON
(path: string, field = "")
source/platforms/gitlab/_tests/_gitlab_git.test.ts:20
↓ 6 callersFunctionshowArray
(array: any[], mapFunc?: (a: any) => any)
source/platforms/git/_tests/local_dangerfile_example.ts:8
↓ 6 callersFunctiontweetSizedResultsFromResults
(results: DangerResults, checksResponse: any)
source/platforms/github/comms/checksCommenter.ts:105
↓ 6 callersMethodupdateOrCreateComment
(_dangerID: string, _newComment: string)
source/platforms/LocalGit.ts:75
↓ 5 callersFunctioncreateStructuredDiff
(chunks: Chunk[], fromPath: string | undefined)
source/platforms/gitlab/_tests/_inline_position_parser.test.ts:7
↓ 5 callersFunctiondangerIDToString
(id: string)
source/runner/templates/githubIssueTemplate.ts:85
↓ 5 callersMethoddeleteMainComment
()
source/platforms/LocalGit.ts:95
↓ 5 callersFunctionencodingParser
(encoding: string)
source/platforms/encodingParser.ts:5
↓ 5 callersFunctionfail
(message: MarkdownString, file?: string, line?: number)
source/runner/Dangerfile.ts:115
↓ 5 callersFunctiongetGitLabAPICredentialsFromEnv
(env: Env)
source/platforms/gitlab/GitLabAPI.ts:52
↓ 5 callersMethodgetPullRequestActivities
()
source/platforms/_tests/_bitbucket_server.test.ts:34
↓ 5 callersFunctionhref
(href?: string, text?: string)
source/runner/DangerUtils.ts:14
↓ 5 callersFunctionlink
(name: string, url: string)
source/commands/danger-init.ts:210
↓ 5 callersFunctionlookupTSConfig
(dir: string)
source/runner/runners/utils/transpiler.ts:89
↓ 5 callersFunctionmarkdown
(message: MarkdownString, file?: string, line?: number)
source/runner/Dangerfile.ts:136
↓ 5 callersFunctionstripWhitespaceForSnapshot
(str: string)
source/platforms/bitbucket_server/_tests/_bitbucket_server_git.test.ts:36
↓ 5 callersFunctionstripWhitespaceForSnapshot
(str: string)
source/platforms/github/_tests/_github_git.test.ts:37
↓ 5 callersFunctionstripWhitespaceForSnapshot
(str: string)
source/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_git.test.ts:38
↓ 4 callersFunctionGitHub
(api: GitHubAPI)
source/platforms/GitHub.ts:16
↓ 4 callersMethodJSONPatchForFile
* Provides a JSON patch (rfc6902) between the two versions of a JSON file, * returns null if you don't have any changes for the file in the diff.
source/dsl/GitDSL.ts:168
↓ 4 callersFunctiondangerIDToString
(id: string)
source/runner/templates/bitbucketServerTemplate.ts:41
↓ 4 callersFunctiondangerIDToString
(id: string)
source/runner/templates/bitbucketCloudTemplate.ts:19
↓ 4 callersFunctionfindPositionForInlineComment
(git: GitDSL, line: number, path: string)
source/platforms/github/comms/issueCommenter.ts:14
↓ 4 callersMethodgetInlineComments
(_: string)
source/platforms/LocalGit.ts:63
↓ 4 callersMethodgetIssues
()
source/platforms/_tests/_bitbucket_server.test.ts:18
↓ 4 callersFunctiongetRuntimeCISource
(app: SharedCLI)
source/commands/utils/getRuntimeCISource.ts:7
↓ 4 callersFunctioninlineTemplate
(dangerID: string, results: DangerResults, file: string, line: number)
source/runner/templates/bitbucketServerTemplate.ts:91
↓ 4 callersFunctioninlineTemplate
(dangerID: string, results: DangerResults, file: string, line: number)
source/runner/templates/githubIssueTemplate.ts:133
↓ 4 callersFunctionisEmptyResults
(results: DangerResults)
source/dsl/DangerResults.ts:242
↓ 4 callersFunctionmockPayloadForResults
(results: DangerResults)
source/runner/_tests/_executor.test.ts:52
↓ 4 callersFunctionrequestWithFixturedJSON
(path: string)
source/platforms/_tests/_bitbucket_cloud.test.ts:8
↓ 4 callersFunctionrequestWithFixturedJSON
(path: string)
source/platforms/github/_tests/fixturedGitHubDSL.ts:21
↓ 4 callersFunctionrequestWithFixturedJSON
(path: string)
source/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_git.test.ts:23
↓ 4 callersFunctionsetup
(cwd: string, configDir: string)
source/runner/runners/utils/_tests/_transpiler.test.ts:42
↓ 4 callersFunctionshouldUseGitHubOverride
(request: string, parent?: NodeModule)
source/platforms/github/customGitHubRequire.ts:89
↓ 4 callersFunctionutils
(pr: GitHubPRDSL | undefined, api: GitHub)
source/platforms/github/GitHubUtils.ts:15
↓ 4 callersFunctionvalidateResults
(results: DangerResults)
source/dsl/DangerResults.ts:96
↓ 3 callersFunctionbabelify
(content: string, filename: string, extraPlugins: string[])
source/runner/runners/utils/transpiler.ts:165
next →1–100 of 621, ranked by callers