Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/danger/danger-js
/ functions
Functions
621 in github.com/danger/danger-js
⨍
Functions
621
◇
Types & classes
270
↓ 60 callers
Function
ensureEnvKeysExist
(env: Env, keys: string[])
source/ci_source/ci_source_helpers.ts:17
↓ 33 callers
Function
debug
(value: string)
source/debug.ts:3
↓ 32 callers
Method
get
Make a get call against the bitbucket server API
source/dsl/BitBucketCloudDSL.ts:23
↓ 31 callers
Function
createNormalChange
(ln1: number, ln2: number)
source/platforms/gitlab/_tests/_inline_position_parser.test.ts:25
↓ 27 callers
Method
diffForFile
* Offers the diff for a specific file * * @param {string} filename the path to the json file
source/dsl/GitDSL.ts:150
↓ 27 callers
Method
handleResults
* 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 callers
Function
pullRequestParser
(address: string)
source/platforms/pullRequestParser.ts:14
↓ 25 callers
Function
defaultDsl
(platform: any)
source/runner/_tests/_executor.test.ts:39
↓ 23 callers
Function
ensureEnvKeysAreInt
(env: Env, keys: string[])
source/ci_source/ci_source_helpers.ts:27
↓ 23 callers
Function
getCISourceForEnv
(env: Env)
source/ci_source/get_ci_source.ts:12
↓ 21 callers
Function
gitJSONToGitDSL
(gitJSONRep: GitJSONDSL, config: GitJSONToGitDSLConfig)
source/platforms/git/gitJSONToGitDSL.ts:46
↓ 21 callers
Function
warn
(message: MarkdownString, file?: string, line?: number)
source/runner/Dangerfile.ts:116
↓ 20 callers
Method
getPlatformReviewDSLRepresentation
()
source/platforms/LocalGit.ts:40
↓ 17 callers
Method
getPullRequestInfo
()
source/platforms/_tests/_github.test.ts:14
↓ 16 callers
Function
createAddChange
(ln: number)
source/platforms/gitlab/_tests/_inline_position_parser.test.ts:35
↓ 14 callers
Function
n
Normalizes path to platform-specific
source/runner/runners/utils/_tests/_transpiler.test.ts:34
↓ 14 callers
Function
requestWithFixturedJSON
(path: string)
source/platforms/github/_tests/_github_git.test.ts:22
↓ 13 callers
Function
dangerRunToRunnerCLI
(argv: string[])
source/commands/utils/dangerRunToRunnerCLI.ts:5
↓ 13 callers
Function
runRunner
(app: SharedCLI, config?: Partial<RunnerConfig>)
source/commands/ci/runner.ts:29
↓ 12 callers
Function
template
(dangerID: string, results: DangerResults, commitID?: string)
source/runner/templates/bitbucketCloudTemplate.ts:55
↓ 12 callers
Method
updateStatus
()
source/platforms/LocalGit.ts:103
↓ 11 callers
Method
getPullRequestComments
()
source/platforms/_tests/_bitbucket_server.test.ts:26
↓ 11 callers
Method
post
Make a post call against the bitbucket server API
source/dsl/BitBucketCloudDSL.ts:26
↓ 11 callers
Function
setupCodeBuildSource
(env: Record<string, unknown>)
source/ci_source/providers/_tests/_codebuild.test.ts:12
↓ 10 callers
Method
getPullRequestCommits
()
source/platforms/_tests/_github.test.ts:23
↓ 10 callers
Function
resultsIntoInlineResults
(results: DangerResults)
source/dsl/DangerResults.ts:248
↓ 9 callers
Function
dirContains
(rootDir: string, dir: string)
source/runner/runners/utils/transpiler.ts:78
↓ 9 callers
Method
getPRBasePath
(service = "api")
source/platforms/bitbucket_server/BitBucketServerAPI.ts:68
↓ 9 callers
Method
getPRURL
()
source/platforms/bitbucket_cloud/BitBucketCloudAPI.ts:109
↓ 9 callers
Method
getPlatformGitRepresentation
()
source/platforms/LocalGit.ts:44
↓ 9 callers
Function
inlinePositionParser
(structuredDiff: StructuredDiff, path: string, line: number)
source/platforms/gitlab/inlinePositionParser.ts:22
↓ 9 callers
Function
isInline
(violation: Violation)
source/dsl/Violation.ts:23
↓ 9 callers
Function
mockApi
(withExisting = false)
source/platforms/_tests/_gitlab.test.ts:54
↓ 9 callers
Function
mockNote
( id: number, authorId: number, body = "", resolved = false, type: "DiffNote" | "DiscussionNote" | n
source/platforms/_tests/_gitlab.test.ts:17
↓ 9 callers
Function
throwIfNotOk
(res: FetchResponse)
source/platforms/bitbucket_server/BitBucketServerAPI.ts:376
↓ 8 callers
Function
api
( url: string | Request, init: RequestInit, suppressErrorReporting?: boolean, processEnv: NodeJS.Proce
source/api/fetch.ts:60
↓ 8 callers
Function
bitBucketCloudRawAndDateToGitCommitAuthor
(raw: string, date: string)
source/platforms/bitbucket_cloud/BitBucketCloudGit.ts:11
↓ 8 callers
Method
getFileContents
Gets the contents of a file from a repo (defaults to yours)
source/dsl/BitBucketCloudDSL.ts:20
↓ 8 callers
Function
loadFixture
(path: string)
source/platforms/gitlab/_tests/_gitlab_api.test.ts:14
↓ 8 callers
Function
message
( message: MarkdownString, opts?: string | { file?: string; line?: number; icon?: MarkdownString },
source/runner/Dangerfile.ts:118
↓ 8 callers
Function
schedule
(fn: any)
source/runner/Dangerfile.ts:114
↓ 8 callers
Function
sentence
(array: string[])
source/runner/DangerUtils.ts:4
↓ 8 callers
Function
template
(dangerID: string, results: DangerResults, commitID?: string)
source/runner/templates/bitbucketServerTemplate.ts:77
↓ 8 callers
Function
throwIfNotOk
(res: FetchResponse)
source/platforms/bitbucket_cloud/BitBucketCloudAPI.ts:413
↓ 7 callers
Method
JSONDiffForFile
* 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 callers
Function
dangerRepresentationForPath
(value: string)
source/platforms/github/customGitHubRequire.ts:27
↓ 7 callers
Function
dangerSignaturePostfix
(results: DangerResults, commitID?: string)
source/runner/templates/bitbucketServerTemplate.ts:53
↓ 7 callers
Function
dangerfilePath
(program: any)
source/commands/utils/fileUtils.ts:10
↓ 7 callers
Function
inlineResultsIntoResults
(inlineResults: DangerInlineResults)
source/dsl/DangerResults.ts:281
↓ 7 callers
Function
inlineTemplate
(dangerID: string, results: DangerResults, file: string, line: number)
source/runner/templates/bitbucketCloudTemplate.ts:77
↓ 7 callers
Function
jsonToDSL
(dsl: DangerDSLJSONType, source: CISource)
source/runner/jsonToDSL.ts:29
↓ 7 callers
Function
mockDiscussion
(id: string, notes: Types.DiscussionNoteSchema[])
source/platforms/_tests/_gitlab.test.ts:49
↓ 7 callers
Function
requestWithFixturedJSON
(path: string)
source/platforms/bitbucket_server/_tests/_bitbucket_server_git.test.ts:21
↓ 7 callers
Method
structuredDiffForFile
* Offers the structured diff for a specific file * * @param {string} filename the path to the json file
source/dsl/GitDSL.ts:157
↓ 6 callers
Function
createChunk
(changes: Change[], oldStart: number, oldLines: number, newStart: number, newLines: number)
source/platforms/gitlab/_tests/_inline_position_parser.test.ts:14
↓ 6 callers
Function
dangerSignaturePostfix
(results: DangerResults, commitID?: string)
source/runner/templates/bitbucketCloudTemplate.ts:24
↓ 6 callers
Function
getPlatformForEnv
(env: Env, source: CISource)
source/platforms/platform.ts:106
↓ 6 callers
Method
getReviewInfo
()
source/platforms/LocalGit.ts:109
↓ 6 callers
Function
jsonDSLGenerator
( platform: Platform, source: CISource, program: CommanderStatic )
source/runner/dslGenerator.ts:8
↓ 6 callers
Function
jsonToContext
( JSONString: string, program: CommanderStatic, source: CISource )
source/runner/jsonToContext.ts:15
↓ 6 callers
Function
requestWithFixturedJSON
(path: string)
source/platforms/_tests/_github.test.ts:9
↓ 6 callers
Function
requestWithFixturedJSON
(path: string)
source/platforms/_tests/_bitbucket_server.test.ts:9
↓ 6 callers
Function
requestWithFixturedJSON
(path: string, field = "")
source/platforms/gitlab/_tests/_gitlab_git.test.ts:20
↓ 6 callers
Function
showArray
(array: any[], mapFunc?: (a: any) => any)
source/platforms/git/_tests/local_dangerfile_example.ts:8
↓ 6 callers
Function
tweetSizedResultsFromResults
(results: DangerResults, checksResponse: any)
source/platforms/github/comms/checksCommenter.ts:105
↓ 6 callers
Method
updateOrCreateComment
(_dangerID: string, _newComment: string)
source/platforms/LocalGit.ts:75
↓ 5 callers
Function
createStructuredDiff
(chunks: Chunk[], fromPath: string | undefined)
source/platforms/gitlab/_tests/_inline_position_parser.test.ts:7
↓ 5 callers
Function
dangerIDToString
(id: string)
source/runner/templates/githubIssueTemplate.ts:85
↓ 5 callers
Method
deleteMainComment
()
source/platforms/LocalGit.ts:95
↓ 5 callers
Function
encodingParser
(encoding: string)
source/platforms/encodingParser.ts:5
↓ 5 callers
Function
fail
(message: MarkdownString, file?: string, line?: number)
source/runner/Dangerfile.ts:115
↓ 5 callers
Function
getGitLabAPICredentialsFromEnv
(env: Env)
source/platforms/gitlab/GitLabAPI.ts:52
↓ 5 callers
Method
getPullRequestActivities
()
source/platforms/_tests/_bitbucket_server.test.ts:34
↓ 5 callers
Function
href
(href?: string, text?: string)
source/runner/DangerUtils.ts:14
↓ 5 callers
Function
link
(name: string, url: string)
source/commands/danger-init.ts:210
↓ 5 callers
Function
lookupTSConfig
(dir: string)
source/runner/runners/utils/transpiler.ts:89
↓ 5 callers
Function
markdown
(message: MarkdownString, file?: string, line?: number)
source/runner/Dangerfile.ts:136
↓ 5 callers
Function
stripWhitespaceForSnapshot
(str: string)
source/platforms/bitbucket_server/_tests/_bitbucket_server_git.test.ts:36
↓ 5 callers
Function
stripWhitespaceForSnapshot
(str: string)
source/platforms/github/_tests/_github_git.test.ts:37
↓ 5 callers
Function
stripWhitespaceForSnapshot
(str: string)
source/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_git.test.ts:38
↓ 4 callers
Function
GitHub
(api: GitHubAPI)
source/platforms/GitHub.ts:16
↓ 4 callers
Method
JSONPatchForFile
* 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 callers
Function
dangerIDToString
(id: string)
source/runner/templates/bitbucketServerTemplate.ts:41
↓ 4 callers
Function
dangerIDToString
(id: string)
source/runner/templates/bitbucketCloudTemplate.ts:19
↓ 4 callers
Function
findPositionForInlineComment
(git: GitDSL, line: number, path: string)
source/platforms/github/comms/issueCommenter.ts:14
↓ 4 callers
Method
getInlineComments
(_: string)
source/platforms/LocalGit.ts:63
↓ 4 callers
Method
getIssues
()
source/platforms/_tests/_bitbucket_server.test.ts:18
↓ 4 callers
Function
getRuntimeCISource
(app: SharedCLI)
source/commands/utils/getRuntimeCISource.ts:7
↓ 4 callers
Function
inlineTemplate
(dangerID: string, results: DangerResults, file: string, line: number)
source/runner/templates/bitbucketServerTemplate.ts:91
↓ 4 callers
Function
inlineTemplate
(dangerID: string, results: DangerResults, file: string, line: number)
source/runner/templates/githubIssueTemplate.ts:133
↓ 4 callers
Function
isEmptyResults
(results: DangerResults)
source/dsl/DangerResults.ts:242
↓ 4 callers
Function
mockPayloadForResults
(results: DangerResults)
source/runner/_tests/_executor.test.ts:52
↓ 4 callers
Function
requestWithFixturedJSON
(path: string)
source/platforms/_tests/_bitbucket_cloud.test.ts:8
↓ 4 callers
Function
requestWithFixturedJSON
(path: string)
source/platforms/github/_tests/fixturedGitHubDSL.ts:21
↓ 4 callers
Function
requestWithFixturedJSON
(path: string)
source/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_git.test.ts:23
↓ 4 callers
Function
setup
(cwd: string, configDir: string)
source/runner/runners/utils/_tests/_transpiler.test.ts:42
↓ 4 callers
Function
shouldUseGitHubOverride
(request: string, parent?: NodeModule)
source/platforms/github/customGitHubRequire.ts:89
↓ 4 callers
Function
utils
(pr: GitHubPRDSL | undefined, api: GitHub)
source/platforms/github/GitHubUtils.ts:15
↓ 4 callers
Function
validateResults
(results: DangerResults)
source/dsl/DangerResults.ts:96
↓ 3 callers
Function
babelify
(content: string, filename: string, extraPlugins: string[])
source/runner/runners/utils/transpiler.ts:165
next →
1–100 of 621, ranked by callers