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
↓ 3 callers
Function
bitbucketCloudCredentialsFromEnv
(env: Env)
source/platforms/bitbucket_cloud/BitBucketCloudAPI.ts:41
↓ 3 callers
Function
bitbucketServerRepoCredentialsFromEnv
(env: Env)
source/platforms/bitbucket_server/BitBucketServerAPI.ts:42
↓ 3 callers
Function
buildMarkdownTable
(header: string, defaultEmoji: string, violations: Violation[])
source/runner/templates/bitbucketCloudTemplate.ts:35
↓ 3 callers
Function
chainsmoker
(keyedPaths: KeyedPaths<T>)
source/commands/utils/chainsmoker.ts:23
↓ 3 callers
Method
createComment
(_comment: string)
source/platforms/LocalGit.ts:79
↓ 3 callers
Function
createDeleteChange
(ln: number)
source/platforms/gitlab/_tests/_inline_position_parser.test.ts:44
↓ 3 callers
Function
dangerSignaturePostfix
(results: DangerResults, commitID?: string)
source/runner/templates/githubIssueTemplate.ts:98
↓ 3 callers
Function
diffForFile
(filename: string)
source/platforms/git/gitJSONToGitDSL.ts:220
↓ 3 callers
Function
diffToGitJSONDSL
(diff: string, commits: GitCommit[])
source/platforms/git/diffToGitJSONDSL.ts:11
↓ 3 callers
Method
fileLinks
* Creates HTML for a sentence of clickable links for an array of paths. * This uses the source of the PR as the target, not the destination repo.
source/dsl/GitHubDSL.ts:57
↓ 3 callers
Method
getBaseRepoURL
()
source/platforms/bitbucket_cloud/BitBucketCloudAPI.ts:104
↓ 3 callers
Function
getCISourceForExternal
(env: Env, modulePath: string)
source/ci_source/get_ci_source.ts:25
↓ 3 callers
Function
getPullRequestIDForBranch
(metadata: RepoMetaData, env: Env, branch: string)
source/ci_source/ci_source_helpers.ts:38
↓ 3 callers
Method
getPullRequestInlineComments
()
source/platforms/_tests/_github.test.ts:28
↓ 3 callers
Function
githubJSONToGitHubDSL
(gh: GitHubJSONDSL, api: NodeGitHub)
source/platforms/GitHub.ts:84
↓ 3 callers
Method
inlineCommentTemplate
(inlineResults: DangerInlineResults)
source/runner/Executor.ts:481
↓ 3 callers
Function
inlineResults
(results: DangerResults)
source/dsl/DangerResults.ts:127
↓ 3 callers
Function
mergeResults
(results1: DangerResults, results2: DangerResults)
source/dsl/DangerResults.ts:149
↓ 3 callers
Function
mockDangerNote
(id: number, resolved = false)
source/platforms/_tests/_gitlab.test.ts:45
↓ 3 callers
Function
prepareDangerDSL
(dangerDSL: DangerDSLJSONType)
source/commands/utils/runDangerSubprocess.ts:21
↓ 3 callers
Function
printViolation
(emoji: string)
source/runner/templates/bitbucketServerTemplate.ts:92
↓ 3 callers
Function
printViolation
(defaultEmoji: string)
source/runner/templates/bitbucketCloudTemplate.ts:78
↓ 3 callers
Function
printViolation
(defaultEmoji: string)
source/runner/templates/githubIssueTemplate.ts:134
↓ 3 callers
Function
regularResults
(results: DangerResults)
source/dsl/DangerResults.ts:137
↓ 3 callers
Function
resultsSection
* Converts a set of violations into a Markdown section * * @param {string} name User facing title of section * @param {string} emoji Emoji name to
source/runner/templates/bitbucketServerTemplate.ts:17
↓ 3 callers
Function
table
* Converts a set of violations into a HTML table * * @param {string} name User facing title of table * @param {string} defaultEmoji Emoji name to s
source/runner/templates/githubIssueTemplate.ts:12
↓ 3 callers
Function
useThreads
()
source/platforms/GitLab.ts:16
↓ 2 callers
Function
APIFactory
({ password, token }: { password?: string; token?: string })
source/platforms/bitbucket_server/_tests/_bitbucket_server_api.test.ts:15
↓ 2 callers
Method
_prParseURL
()
source/ci_source/providers/Circle.ts:66
↓ 2 callers
Function
addSubprocessCallArguments
(call: string[], args: string[] = process.argv)
source/commands/utils/runDangerSubprocess.ts:32
↓ 2 callers
Function
buildSummaryMessage
(dangerID: string, results: DangerResults)
source/runner/templates/githubIssueTemplate.ts:75
↓ 2 callers
Function
byType
(t: string)
source/platforms/git/gitJSONToGitDSL.ts:184
↓ 2 callers
Function
checkForBabel
(prefix: BabelPackagePrefix)
source/runner/runners/utils/transpiler.ts:39
↓ 2 callers
Function
chunkContainsLine
(chunk: Chunk, line: number)
source/platforms/gitlab/inlinePositionParser.ts:150
↓ 2 callers
Function
compliment
()
source/runner/DangerUtils.ts:24
↓ 2 callers
Function
customGitHubResolveRequest
(token: string)
source/platforms/github/customGitHubRequire.ts:102
↓ 2 callers
Method
delete
Make a delete call against the bitbucket server API
source/dsl/BitBucketCloudDSL.ts:32
↓ 2 callers
Method
deleteInlineComment
(comment: Comment)
source/runner/Executor.ts:477
↓ 2 callers
Method
dslForDanger
* Sets up all the related objects for running the Dangerfile * @returns {void} It's a promise, so a void promise
source/runner/Executor.ts:115
↓ 2 callers
Function
emptyGitJSON
()
source/platforms/github/GitHubGit.ts:65
↓ 2 callers
Function
emptyValueOfCounterpart
(other: any)
source/platforms/git/gitJSONToGitDSL.ts:122
↓ 2 callers
Method
fileContents
* Downloads a file's contents via the GitHub API. You'll want to use * this instead of `fs.readFile` when aiming to support working with Peril.
source/dsl/GitHubDSL.ts:67
↓ 2 callers
Function
fileLineToString
(file: string, line: number)
source/runner/templates/githubIssueTemplate.ts:86
↓ 2 callers
Function
fixturedGitHubDSL
()
source/platforms/github/_tests/fixturedGitHubDSL.ts:34
↓ 2 callers
Function
getAuthWhenUsingDangerJSApp
()
source/platforms/github/comms/checksCommenter.ts:11
↓ 2 callers
Function
getCustomAppAuthFromEnv
()
source/platforms/github/comms/checksCommenter.ts:24
↓ 2 callers
Method
getGitDiff
()
source/platforms/LocalGit.ts:24
↓ 2 callers
Function
getGitHubFileContentsFromLocation
( token: string, location: RepresentationForURL, defaultRepo: string )
source/platforms/github/customGitHubRequire.ts:42
↓ 2 callers
Function
getGitLabHostFromEnv
(env: Env)
source/platforms/gitlab/GitLabAPI.ts:27
↓ 2 callers
Method
getPullRequestChanges
()
source/platforms/_tests/_bitbucket_server.test.ts:30
↓ 2 callers
Function
getSummary
(label: string, violations: Violation[])
source/runner/templates/githubIssueTemplate.ts:66
↓ 2 callers
Function
githubActions
(ui: InitUI, state: InitState)
source/commands/init/add-to-ci.ts:4
↓ 2 callers
Function
gitlabChangesToDiff
(changes: Types.CommitDiffSchema[])
source/platforms/gitlab/GitLabGit.ts:26
↓ 2 callers
Function
gitlabJSONToGitLabDSL
(gl: GitLabJSONDSL, api: GitLabAPI)
source/platforms/GitLab.ts:354
↓ 2 callers
Method
handleResultsPostingToSTDOUT
* Handle showing results inside the shell. * * @param {DangerResults} results a JSON representation of the end-state for a Danger run
source/runner/Executor.ts:165
↓ 2 callers
Function
isExclude
(p: Pattern)
source/commands/utils/chainsmoker.ts:21
↓ 2 callers
Method
isJenkins
()
source/ci_source/providers/Jenkins.ts:41
↓ 2 callers
Method
linesOfCode
* Offers the overall lines of code added/removed in the diff * * @param {string} pattern an option glob pattern to filer files that will conside
source/dsl/GitDSL.ts:194
↓ 2 callers
Function
loadFixture
(path: string)
source/platforms/bitbucket_server/_tests/_bitbucket_server_git.test.ts:17
↓ 2 callers
Function
loadFixture
(path: string)
source/platforms/github/_tests/fixturedGitHubDSL.ts:17
↓ 2 callers
Function
loadFixture
(path: string)
source/platforms/github/_tests/_github_git.test.ts:18
↓ 2 callers
Function
loadFixture
(path: string)
source/platforms/gitlab/_tests/_gitlab_git.test.ts:16
↓ 2 callers
Function
loadFixture
(path: string)
source/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_git.test.ts:19
↓ 2 callers
Function
localGetCommits
(base: string, head: string)
source/platforms/git/localGetCommits.ts:4
↓ 2 callers
Function
localGetFileAtSHA
(path: string, _repo: string | undefined, sha: string)
source/platforms/git/localGetFileAtSHA.ts:6
↓ 2 callers
Function
logGitCommits
(options: GitLogOptions)
source/platforms/git/localLogGitCommits.ts:85
↓ 2 callers
Function
mapLines
(s: string, func: (s: string) => string)
scripts/danger-dts.ts:4
↓ 2 callers
Function
mockSystemAutoresolveNote
(id: number, authorId: number)
source/platforms/_tests/_gitlab.test.ts:35
↓ 2 callers
Function
nNewLinesReplacer
(comment: string)
source/runner/runners/utils/cleanDangerfile.ts:12
↓ 2 callers
Function
next
()
source/platforms/github/GitHubAPI.ts:24
↓ 2 callers
Function
next
()
scripts/run-fixtures.js:97
↓ 2 callers
Method
put
Make a put call against the bitbucket server API
source/dsl/BitBucketCloudDSL.ts:29
↓ 2 callers
Function
requestWithFixturedContent
(path: string)
source/platforms/gitlab/_tests/_gitlab_git.test.ts:32
↓ 2 callers
Function
runDangerSubprocess
( subprocessName: string[], dslJSON: DangerDSLJSONType, exec: Executor, config: RunnerConfig )
source/commands/utils/runDangerSubprocess.ts:40
↓ 2 callers
Function
say
(msg: string)
source/commands/init/state-setup.ts:14
↓ 2 callers
Function
sendDSLToSubprocess
()
source/commands/utils/runDangerSubprocess.ts:56
↓ 2 callers
Method
sendInlineComments
* Send inline comments * Returns these violations that didn't pass the validation (e.g. incorrect file/line) * * @param results Results with
source/runner/Executor.ts:382
↓ 2 callers
Method
setup
allows the source to do some setup
source/ci_source/ci_source.ts:24
↓ 2 callers
Function
sortInlineResults
(inlineResults: DangerInlineResults[])
source/dsl/DangerResults.ts:161
↓ 2 callers
Function
typescriptify
(content: string, dir: string, esm: boolean = false)
source/runner/runners/utils/transpiler.ts:122
↓ 2 callers
Method
warn
* Highlights low-priority issues. Message is shown inside a HTML table. * * @param {MarkdownString} message the String to output * @param {st
source/runner/Dangerfile.ts:45
↓ 1 callers
Function
APIFactory
(username: string, password: string, uuid: string)
source/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_api.test.ts:28
↓ 1 callers
Function
APIMetadataForPR
(pr: GitHubPRDSL)
source/platforms/GitHub.ts:20
↓ 1 callers
Function
GitHubChecksCommenter
(api: GitHubAPI)
source/platforms/github/comms/checksCommenter.ts:60
↓ 1 callers
Function
GitHubIssueCommenter
(api: GitHubAPI)
source/platforms/github/comms/issueCommenter.ts:48
↓ 1 callers
Function
JSONPatchForFile
(filename: string)
source/platforms/git/gitJSONToGitDSL.ts:65
↓ 1 callers
Method
_getPrId
()
source/ci_source/providers/CodeBuild.ts:67
↓ 1 callers
Method
_isPRRequest
()
source/ci_source/providers/CodeBuild.ts:56
↓ 1 callers
Method
_parseRepoURL
()
source/ci_source/providers/Buildkite.ts:39
↓ 1 callers
Method
_parseRepoURL
()
source/ci_source/providers/Screwdriver.ts:42
↓ 1 callers
Method
_prParseUrl
()
source/ci_source/providers/CodeBuild.ts:60
↓ 1 callers
Function
act
()
source/runner/runners/utils/_tests/_transpiler.test.ts:113
↓ 1 callers
Function
addToCI
(ui: InitUI, state: InitState)
source/commands/danger-init.ts:229
↓ 1 callers
Function
apiForDSL
(dsl: DangerDSLJSONType)
source/runner/jsonToDSL.ts:76
↓ 1 callers
Function
appendS
(arr: any[])
source/platforms/github/comms/checksCommenter.ts:129
↓ 1 callers
Function
asyncAction
()
source/runner/_tests/fixtures/__DangerfileAsync.js:1
↓ 1 callers
Function
asyncAction
()
source/runner/_tests/fixtures/__DangerfileAsync.ts:1
↓ 1 callers
Function
bitBucketCloudGitDSL
( bitBucketCloud: BitBucketCloudJSONDSL, json: GitJSONDSL, bitBucketCloudAPI: BitBucketCloudAPI )
source/platforms/bitbucket_cloud/BitBucketCloudGit.ts:52
↓ 1 callers
Function
bitBucketServerChangesToGitJSONDSL
( changes: BitBucketServerChangesValue[], commits: GitCommit[] )
source/platforms/bitbucket_server/BitBucketServerGit.ts:87
↓ 1 callers
Function
bitBucketServerCommitToGitCommit
* Returns the response for the new comment * * @param {BitBucketServerCommit} ghCommit A BitBucketServer based commit * @returns {GitCommit} a Git
source/platforms/bitbucket_server/BitBucketServerGit.ts:24
← previous
next →
101–200 of 621, ranked by callers