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
↓ 1 callers
Function
bitBucketServerDiffToGitStructuredDiff
(diffs: BitBucketServerDiff[])
source/platforms/bitbucket_server/BitBucketServerGit.ts:132
↓ 1 callers
Function
bitBucketServerGitDSL
( bitBucketServer: BitBucketServerJSONDSL, json: GitJSONDSL, bitBucketServerAPI: BitBucketServerAPI )
source/platforms/bitbucket_server/BitBucketServerGit.ts:65
↓ 1 callers
Function
bitbucketCloudJSONToBitBucketCloudDSL
( bitbucket: BitBucketCloudJSONDSL, api: BitBucketCloudAPI )
source/platforms/BitBucketCloud.ts:185
↓ 1 callers
Function
bitbucketServerJSONToBitBucketServerDSL
( bitbucket: BitBucketServerJSONDSL, api: BitBucketServerAPI )
source/platforms/BitBucketServer.ts:265
↓ 1 callers
Function
buildHeader
(headers: string[])
source/runner/templates/markdownTableTemplate.ts:1
↓ 1 callers
Function
buildRows
(rows: string[][])
source/runner/templates/markdownTableTemplate.ts:6
↓ 1 callers
Function
calculateLineDiff
(diff: StructuredDiff, line: number)
source/platforms/gitlab/inlinePositionParser.ts:34
↓ 1 callers
Function
camelCase
(str: string)
source/commands/init/state-setup.ts:70
↓ 1 callers
Function
canUseChecks
(token: string | undefined)
source/platforms/github/comms/checksCommenter.ts:36
↓ 1 callers
Function
capitalizeFirstLetter
(string: string)
source/commands/init/state-setup.ts:69
↓ 1 callers
Function
checkForBabel
()
source/commands/init/state-setup.ts:66
↓ 1 callers
Function
checkForNodeModules
()
source/runner/runners/utils/transpiler.ts:25
↓ 1 callers
Function
checkForTypeScript
()
source/commands/init/state-setup.ts:65
↓ 1 callers
Function
checkSeparateTestsFolder
(src: string, tests: string)
source/commands/init/default-dangerfile.ts:89
↓ 1 callers
Function
circle
(ui: InitUI, state: InitState)
source/commands/init/add-to-ci.ts:102
↓ 1 callers
Function
containsMarkdown
(message: string)
source/runner/templates/githubIssueTemplate.ts:47
↓ 1 callers
Function
contextForDanger
(dsl: DangerDSLType)
source/runner/Dangerfile.ts:105
↓ 1 callers
Function
createCommandArguments
(options: GitLogOptions)
source/platforms/git/localLogGitCommits.ts:36
↓ 1 callers
Function
createImport
(state: InitState)
source/commands/init/default-dangerfile.ts:56
↓ 1 callers
Method
createInlineComment
(_git: GitDSL, _comment: string, _path: string, _line: number)
source/platforms/LocalGit.ts:83
↓ 1 callers
Function
createOrAddLabel
(pr: GitHubPRDSL | undefined, api: GitHub)
source/platforms/github/GitHubUtils.ts:195
↓ 1 callers
Function
createOrUpdatePR
(pr: GitHubPRDSL | undefined, api: GitHub)
source/platforms/github/GitHubUtils.ts:143
↓ 1 callers
Function
createUI
(state: InitState, app: any)
source/commands/init/state-setup.ts:13
↓ 1 callers
Function
createUpdatedIssueWithIDGenerator
(api: GitHub)
source/platforms/github/GitHubUtils.ts:93
↓ 1 callers
Function
dangerSignature
(results: DangerResults)
source/runner/templates/bitbucketServerTemplate.ts:45
↓ 1 callers
Function
dangerSignature
(results: DangerResults)
source/runner/templates/bitbucketCloudTemplate.ts:12
↓ 1 callers
Function
dangerSignature
(results: DangerResults)
source/runner/templates/githubIssueTemplate.ts:89
↓ 1 callers
Method
fail
* Highlights critical issues. Message is shown inside a HTML table. * * @param {MarkdownString} message the String to output * @param {string
source/runner/Dangerfile.ts:36
↓ 1 callers
Function
fetch
(api: any, params: any)
source/platforms/github/_tests/_github_api.test.ts:29
↓ 1 callers
Function
fileContentsGenerator
(api: GitHub, defaultRepoSlug: string | undefined, defaultRef: string | undefined)
source/platforms/github/GitHubUtils.ts:47
↓ 1 callers
Function
fileLineToString
(file: string, line: number)
source/runner/templates/bitbucketServerTemplate.ts:42
↓ 1 callers
Function
fileLineToString
(file: string, line: number)
source/runner/templates/bitbucketCloudTemplate.ts:20
↓ 1 callers
Function
finalize
(keyedPaths: KeyedPaths<T>)
source/commands/utils/chainsmoker.ts:38
↓ 1 callers
Function
findRelevantChunk
(diff: StructuredDiff, line: number)
source/platforms/gitlab/inlinePositionParser.ts:97
↓ 1 callers
Function
fixturedData
(path: string)
source/platforms/github/_tests/_github_utils.test.ts:7
↓ 1 callers
Function
formatDangerfile
(dangerfile: string, dangerfileState: ReturnType<typeof generateDangerfileState>)
source/commands/init/default-dangerfile.ts:40
↓ 1 callers
Function
generateDangerfileState
()
source/commands/init/default-dangerfile.ts:4
↓ 1 callers
Function
generateDefaultDangerfile
(state: InitState)
source/commands/init/default-dangerfile.ts:11
↓ 1 callers
Function
generateInitialState
(osProcess: NodeJS.Process)
source/commands/init/state-setup.ts:33
↓ 1 callers
Function
getAccessTokenForInstallation
(appID: string, installationID: number, key: string)
source/platforms/github/comms/checks/githubAppSupport.ts:45
↓ 1 callers
Function
getBlobUrlForPath
(path: string)
source/platforms/github/comms/checks/resultsToCheck.ts:69
↓ 1 callers
Function
getCISource
(env: Env, modulePath: string | undefined)
source/ci_source/get_ci_source.ts:50
↓ 1 callers
Method
getExternalAPI
()
source/platforms/_tests/_github.test.ts:43
↓ 1 callers
Function
getGitHubFileContents
( token: string, repoSlug: string, path: string, ref: string | null, showError: boolean = true )
source/platforms/github/customGitHubRequire.ts:55
↓ 1 callers
Function
getIssue
()
source/platforms/GitHub.ts:30
↓ 1 callers
Method
getIssue
()
source/platforms/_tests/_github.test.ts:18
↓ 1 callers
Function
getJSONFromSTDOUT
(stdout: string)
source/commands/utils/runDangerSubprocess.ts:154
↓ 1 callers
Function
getJSONURLFromSTDOUT
(stdout: string)
source/commands/utils/runDangerSubprocess.ts:145
↓ 1 callers
Function
getJSONURLFromSTDOUT
(stdout)
scripts/run-fixtures.js:87
↓ 1 callers
Function
getRepoSlug
()
source/commands/init/get-repo-slug.ts:6
↓ 1 callers
Method
getReviewerRequests
()
source/platforms/_tests/_github.test.ts:38
↓ 1 callers
Method
getReviews
()
source/platforms/_tests/_github.test.ts:33
↓ 1 callers
Function
gitDSLForBitBucketCloud
(api: BitBucketCloudAPI)
source/platforms/bitbucket_cloud/BitBucketCloudGit.ts:44
↓ 1 callers
Function
gitDSLForBitBucketServer
(api: BitBucketServerAPI)
source/platforms/bitbucket_server/BitBucketServerGit.ts:55
↓ 1 callers
Function
gitDSLForGitHub
(api: GitHubAPI)
source/platforms/github/GitHubGit.ts:31
↓ 1 callers
Function
gitLabGitDSL
(gitlab: GitLabDSL, json: GitJSONDSL, gitlabAPI: GitLabAPI)
source/platforms/gitlab/GitLabGit.ts:10
↓ 1 callers
Function
githubActionsWorkflowWarningCheck
()
source/ci_source/providers/GitHubActions.ts:278
↓ 1 callers
Function
go
(app: App)
source/commands/danger-init.ts:33
↓ 1 callers
Function
goAsync
()
source/platforms/git/_tests/local_dangerfile_example.ts:16
↓ 1 callers
Method
handleResultsPostingToPlatform
* Handle showing results inside a code review platform * * @param {DangerResults} results a JSON representation of the end-state for a Danger ru
source/runner/Executor.ts:240
↓ 1 callers
Function
htmlForValidation
(defaultEmoji: string, violation: Violation)
source/runner/templates/githubIssueTemplate.ts:29
↓ 1 callers
Function
inlineResultsToAnnotations
( results: DangerResults, _options: ExecutorOptions, getBlobUrlForPath: any )
source/platforms/github/comms/checks/resultsToCheck.ts:122
↓ 1 callers
Function
isInstallationAccessToken
(credentials: unknown)
source/platforms/github/comms/checks/githubAppSupport.ts:38
↓ 1 callers
Function
isMarkdownOnlyResults
(results: DangerResults)
source/dsl/DangerResults.ts:245
↓ 1 callers
Function
jsonDSLPlatformName
(platform: Platform)
source/runner/dslGenerator.ts:49
↓ 1 callers
Function
jwtForGitHubAuth
(appID: string, key: string)
source/platforms/github/comms/checks/githubAppSupport.ts:7
↓ 1 callers
Function
localGetDiff
(base: string, head: string, staging: boolean = false)
source/platforms/git/localGetDiff.ts:13
↓ 1 callers
Function
makeString
(name: string, arr: any[])
source/platforms/github/comms/checksCommenter.ts:130
↓ 1 callers
Method
markdown
* Adds raw markdown into the Danger comment, under the table * * @param {MarkdownString} message the String to output * @param {string | unde
source/runner/Dangerfile.ts:76
↓ 1 callers
Function
markdownCode
(string: string)
source/commands/utils/reporting.ts:3
↓ 1 callers
Function
matchPatterns
(patterns: Pattern[])
source/commands/utils/chainsmoker.ts:24
↓ 1 callers
Function
mergeResults
(left: DangerResults, right: DangerResults)
source/commands/utils/reporting.ts:18
↓ 1 callers
Function
messageForResults
(results: DangerResults)
source/runner/Executor.ts:512
↓ 1 callers
Function
messageFromResults
(results: DangerResults)
source/platforms/github/comms/checksCommenter.ts:128
↓ 1 callers
Function
noViolationsOrAllOfThemEmpty
(violations: Violation[])
source/runner/templates/githubIssueTemplate.ts:51
↓ 1 callers
Function
noteAboutClickingLinks
(ui: InitUI, state: InitState)
source/commands/danger-init.ts:192
↓ 1 callers
Function
pLimit
* Inline concurrency limiter — replaces the `p-limit` package. * Restricts the number of promises running at once to `concurrency`.
source/platforms/github/GitHubAPI.ts:20
↓ 1 callers
Function
parseCommits
(commits: readonly string[], fields: readonly string[])
source/platforms/git/localLogGitCommits.ts:64
↓ 1 callers
Function
requestAccessTokenForInstallation
(appID: string, installationID: number, key: string)
source/platforms/github/comms/checks/githubAppSupport.ts:22
↓ 1 callers
Function
requestWithFixturedContent
(path: string)
source/platforms/github/_tests/fixturedGitHubDSL.ts:27
↓ 1 callers
Function
requestWithFixturedContent
(path: string)
source/platforms/github/_tests/_github_git.test.ts:28
↓ 1 callers
Function
requestWithFixturedContent
(path: string)
source/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_git.test.ts:29
↓ 1 callers
Function
resultsForCaughtError
(file: string, contents: string, error: Error)
source/runner/runners/utils/resultsForCaughtError.ts:5
↓ 1 callers
Method
resultsForError
* Takes an error (maybe a bad eval) and provides a DangerResults compatible object * @param error Any JS error
source/runner/Executor.ts:499
↓ 1 callers
Function
resultsToCheck
( results: DangerResults, options: ExecutorOptions, pr: GitHubPRDSL, api: GitHubNodeAPI, ciCommitHas
source/platforms/github/comms/checks/resultsToCheck.ts:50
↓ 1 callers
Function
resultsWithFailure
(failure: string, moreMarkdown?: string)
source/commands/utils/reporting.ts:8
↓ 1 callers
Function
retryableFetch
(url: string | Request, init: RequestInit)
source/api/fetch.ts:30
↓ 1 callers
Function
run
(config: SharedCLI)
source/commands/danger-runner.ts:48
↓ 1 callers
Function
run
()
source/platforms/github/GitHubAPI.ts:33
↓ 1 callers
Function
runAllScheduledTasks
(results: DangerRuntimeContainer)
source/runner/runners/inline.ts:27
↓ 1 callers
Method
runDanger
* Runs all of the operations for a running just Danger * @param {string} file the filepath to the Dangerfile * @returns {Promise<DangerResults>
source/runner/Executor.ts:96
↓ 1 callers
Function
runDangerfile
(fixture)
scripts/run-fixtures.js:39
↓ 1 callers
Function
runHalfProcessJSON
(platform: Platform, source: CISource)
source/commands/danger-pr.ts:132
↓ 1 callers
Function
runRunner
(app: SharedCLI, config?: RunnerConfig)
source/commands/ci/resetStatus.ts:12
↓ 1 callers
Function
sanitizeTSConfig
(config: any, esm: boolean = false)
source/runner/runners/utils/transpiler.ts:138
↓ 1 callers
Method
sendInlineComment
(git: GitDSL, inlineResults: DangerInlineResults)
source/runner/Executor.ts:462
↓ 1 callers
Method
sendInlineReview
(git: GitDSL, inlineResultsForReview: DangerInlineResults[])
source/runner/Executor.ts:448
↓ 1 callers
Method
setup
()
source/ci_source/providers/CodeBuild.ts:26
↓ 1 callers
Function
setupDangerfile
(ui: InitUI, state: InitState)
source/commands/danger-init.ts:89
↓ 1 callers
Function
setupGHAccessToken
(ui: InitUI, state: InitState)
source/commands/danger-init.ts:158
← previous
next →
201–300 of 621, ranked by callers