MCPcopy Index your code

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

Functions621 in github.com/danger/danger-js

↓ 3 callersFunctionbitbucketCloudCredentialsFromEnv
(env: Env)
source/platforms/bitbucket_cloud/BitBucketCloudAPI.ts:41
↓ 3 callersFunctionbitbucketServerRepoCredentialsFromEnv
(env: Env)
source/platforms/bitbucket_server/BitBucketServerAPI.ts:42
↓ 3 callersFunctionbuildMarkdownTable
(header: string, defaultEmoji: string, violations: Violation[])
source/runner/templates/bitbucketCloudTemplate.ts:35
↓ 3 callersFunctionchainsmoker
(keyedPaths: KeyedPaths<T>)
source/commands/utils/chainsmoker.ts:23
↓ 3 callersMethodcreateComment
(_comment: string)
source/platforms/LocalGit.ts:79
↓ 3 callersFunctioncreateDeleteChange
(ln: number)
source/platforms/gitlab/_tests/_inline_position_parser.test.ts:44
↓ 3 callersFunctiondangerSignaturePostfix
(results: DangerResults, commitID?: string)
source/runner/templates/githubIssueTemplate.ts:98
↓ 3 callersFunctiondiffForFile
(filename: string)
source/platforms/git/gitJSONToGitDSL.ts:220
↓ 3 callersFunctiondiffToGitJSONDSL
(diff: string, commits: GitCommit[])
source/platforms/git/diffToGitJSONDSL.ts:11
↓ 3 callersMethodfileLinks
* 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 callersMethodgetBaseRepoURL
()
source/platforms/bitbucket_cloud/BitBucketCloudAPI.ts:104
↓ 3 callersFunctiongetCISourceForExternal
(env: Env, modulePath: string)
source/ci_source/get_ci_source.ts:25
↓ 3 callersFunctiongetPullRequestIDForBranch
(metadata: RepoMetaData, env: Env, branch: string)
source/ci_source/ci_source_helpers.ts:38
↓ 3 callersMethodgetPullRequestInlineComments
()
source/platforms/_tests/_github.test.ts:28
↓ 3 callersFunctiongithubJSONToGitHubDSL
(gh: GitHubJSONDSL, api: NodeGitHub)
source/platforms/GitHub.ts:84
↓ 3 callersMethodinlineCommentTemplate
(inlineResults: DangerInlineResults)
source/runner/Executor.ts:481
↓ 3 callersFunctioninlineResults
(results: DangerResults)
source/dsl/DangerResults.ts:127
↓ 3 callersFunctionmergeResults
(results1: DangerResults, results2: DangerResults)
source/dsl/DangerResults.ts:149
↓ 3 callersFunctionmockDangerNote
(id: number, resolved = false)
source/platforms/_tests/_gitlab.test.ts:45
↓ 3 callersFunctionprepareDangerDSL
(dangerDSL: DangerDSLJSONType)
source/commands/utils/runDangerSubprocess.ts:21
↓ 3 callersFunctionprintViolation
(emoji: string)
source/runner/templates/bitbucketServerTemplate.ts:92
↓ 3 callersFunctionprintViolation
(defaultEmoji: string)
source/runner/templates/bitbucketCloudTemplate.ts:78
↓ 3 callersFunctionprintViolation
(defaultEmoji: string)
source/runner/templates/githubIssueTemplate.ts:134
↓ 3 callersFunctionregularResults
(results: DangerResults)
source/dsl/DangerResults.ts:137
↓ 3 callersFunctionresultsSection
* 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 callersFunctiontable
* 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 callersFunctionuseThreads
()
source/platforms/GitLab.ts:16
↓ 2 callersFunctionAPIFactory
({ password, token }: { password?: string; token?: string })
source/platforms/bitbucket_server/_tests/_bitbucket_server_api.test.ts:15
↓ 2 callersMethod_prParseURL
()
source/ci_source/providers/Circle.ts:66
↓ 2 callersFunctionaddSubprocessCallArguments
(call: string[], args: string[] = process.argv)
source/commands/utils/runDangerSubprocess.ts:32
↓ 2 callersFunctionbuildSummaryMessage
(dangerID: string, results: DangerResults)
source/runner/templates/githubIssueTemplate.ts:75
↓ 2 callersFunctionbyType
(t: string)
source/platforms/git/gitJSONToGitDSL.ts:184
↓ 2 callersFunctioncheckForBabel
(prefix: BabelPackagePrefix)
source/runner/runners/utils/transpiler.ts:39
↓ 2 callersFunctionchunkContainsLine
(chunk: Chunk, line: number)
source/platforms/gitlab/inlinePositionParser.ts:150
↓ 2 callersFunctioncompliment
()
source/runner/DangerUtils.ts:24
↓ 2 callersFunctioncustomGitHubResolveRequest
(token: string)
source/platforms/github/customGitHubRequire.ts:102
↓ 2 callersMethoddelete
Make a delete call against the bitbucket server API
source/dsl/BitBucketCloudDSL.ts:32
↓ 2 callersMethoddeleteInlineComment
(comment: Comment)
source/runner/Executor.ts:477
↓ 2 callersMethoddslForDanger
* 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 callersFunctionemptyGitJSON
()
source/platforms/github/GitHubGit.ts:65
↓ 2 callersFunctionemptyValueOfCounterpart
(other: any)
source/platforms/git/gitJSONToGitDSL.ts:122
↓ 2 callersMethodfileContents
* 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 callersFunctionfileLineToString
(file: string, line: number)
source/runner/templates/githubIssueTemplate.ts:86
↓ 2 callersFunctionfixturedGitHubDSL
()
source/platforms/github/_tests/fixturedGitHubDSL.ts:34
↓ 2 callersFunctiongetAuthWhenUsingDangerJSApp
()
source/platforms/github/comms/checksCommenter.ts:11
↓ 2 callersFunctiongetCustomAppAuthFromEnv
()
source/platforms/github/comms/checksCommenter.ts:24
↓ 2 callersMethodgetGitDiff
()
source/platforms/LocalGit.ts:24
↓ 2 callersFunctiongetGitHubFileContentsFromLocation
( token: string, location: RepresentationForURL, defaultRepo: string )
source/platforms/github/customGitHubRequire.ts:42
↓ 2 callersFunctiongetGitLabHostFromEnv
(env: Env)
source/platforms/gitlab/GitLabAPI.ts:27
↓ 2 callersMethodgetPullRequestChanges
()
source/platforms/_tests/_bitbucket_server.test.ts:30
↓ 2 callersFunctiongetSummary
(label: string, violations: Violation[])
source/runner/templates/githubIssueTemplate.ts:66
↓ 2 callersFunctiongithubActions
(ui: InitUI, state: InitState)
source/commands/init/add-to-ci.ts:4
↓ 2 callersFunctiongitlabChangesToDiff
(changes: Types.CommitDiffSchema[])
source/platforms/gitlab/GitLabGit.ts:26
↓ 2 callersFunctiongitlabJSONToGitLabDSL
(gl: GitLabJSONDSL, api: GitLabAPI)
source/platforms/GitLab.ts:354
↓ 2 callersMethodhandleResultsPostingToSTDOUT
* 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 callersFunctionisExclude
(p: Pattern)
source/commands/utils/chainsmoker.ts:21
↓ 2 callersMethodisJenkins
()
source/ci_source/providers/Jenkins.ts:41
↓ 2 callersMethodlinesOfCode
* 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 callersFunctionloadFixture
(path: string)
source/platforms/bitbucket_server/_tests/_bitbucket_server_git.test.ts:17
↓ 2 callersFunctionloadFixture
(path: string)
source/platforms/github/_tests/fixturedGitHubDSL.ts:17
↓ 2 callersFunctionloadFixture
(path: string)
source/platforms/github/_tests/_github_git.test.ts:18
↓ 2 callersFunctionloadFixture
(path: string)
source/platforms/gitlab/_tests/_gitlab_git.test.ts:16
↓ 2 callersFunctionloadFixture
(path: string)
source/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_git.test.ts:19
↓ 2 callersFunctionlocalGetCommits
(base: string, head: string)
source/platforms/git/localGetCommits.ts:4
↓ 2 callersFunctionlocalGetFileAtSHA
(path: string, _repo: string | undefined, sha: string)
source/platforms/git/localGetFileAtSHA.ts:6
↓ 2 callersFunctionlogGitCommits
(options: GitLogOptions)
source/platforms/git/localLogGitCommits.ts:85
↓ 2 callersFunctionmapLines
(s: string, func: (s: string) => string)
scripts/danger-dts.ts:4
↓ 2 callersFunctionmockSystemAutoresolveNote
(id: number, authorId: number)
source/platforms/_tests/_gitlab.test.ts:35
↓ 2 callersFunctionnNewLinesReplacer
(comment: string)
source/runner/runners/utils/cleanDangerfile.ts:12
↓ 2 callersFunctionnext
()
source/platforms/github/GitHubAPI.ts:24
↓ 2 callersFunctionnext
()
scripts/run-fixtures.js:97
↓ 2 callersMethodput
Make a put call against the bitbucket server API
source/dsl/BitBucketCloudDSL.ts:29
↓ 2 callersFunctionrequestWithFixturedContent
(path: string)
source/platforms/gitlab/_tests/_gitlab_git.test.ts:32
↓ 2 callersFunctionrunDangerSubprocess
( subprocessName: string[], dslJSON: DangerDSLJSONType, exec: Executor, config: RunnerConfig )
source/commands/utils/runDangerSubprocess.ts:40
↓ 2 callersFunctionsay
(msg: string)
source/commands/init/state-setup.ts:14
↓ 2 callersFunctionsendDSLToSubprocess
()
source/commands/utils/runDangerSubprocess.ts:56
↓ 2 callersMethodsendInlineComments
* 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 callersMethodsetup
allows the source to do some setup
source/ci_source/ci_source.ts:24
↓ 2 callersFunctionsortInlineResults
(inlineResults: DangerInlineResults[])
source/dsl/DangerResults.ts:161
↓ 2 callersFunctiontypescriptify
(content: string, dir: string, esm: boolean = false)
source/runner/runners/utils/transpiler.ts:122
↓ 2 callersMethodwarn
* 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 callersFunctionAPIFactory
(username: string, password: string, uuid: string)
source/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_api.test.ts:28
↓ 1 callersFunctionAPIMetadataForPR
(pr: GitHubPRDSL)
source/platforms/GitHub.ts:20
↓ 1 callersFunctionGitHubChecksCommenter
(api: GitHubAPI)
source/platforms/github/comms/checksCommenter.ts:60
↓ 1 callersFunctionGitHubIssueCommenter
(api: GitHubAPI)
source/platforms/github/comms/issueCommenter.ts:48
↓ 1 callersFunctionJSONPatchForFile
(filename: string)
source/platforms/git/gitJSONToGitDSL.ts:65
↓ 1 callersMethod_getPrId
()
source/ci_source/providers/CodeBuild.ts:67
↓ 1 callersMethod_isPRRequest
()
source/ci_source/providers/CodeBuild.ts:56
↓ 1 callersMethod_parseRepoURL
()
source/ci_source/providers/Buildkite.ts:39
↓ 1 callersMethod_parseRepoURL
()
source/ci_source/providers/Screwdriver.ts:42
↓ 1 callersMethod_prParseUrl
()
source/ci_source/providers/CodeBuild.ts:60
↓ 1 callersFunctionact
()
source/runner/runners/utils/_tests/_transpiler.test.ts:113
↓ 1 callersFunctionaddToCI
(ui: InitUI, state: InitState)
source/commands/danger-init.ts:229
↓ 1 callersFunctionapiForDSL
(dsl: DangerDSLJSONType)
source/runner/jsonToDSL.ts:76
↓ 1 callersFunctionappendS
(arr: any[])
source/platforms/github/comms/checksCommenter.ts:129
↓ 1 callersFunctionasyncAction
()
source/runner/_tests/fixtures/__DangerfileAsync.js:1
↓ 1 callersFunctionasyncAction
()
source/runner/_tests/fixtures/__DangerfileAsync.ts:1
↓ 1 callersFunctionbitBucketCloudGitDSL
( bitBucketCloud: BitBucketCloudJSONDSL, json: GitJSONDSL, bitBucketCloudAPI: BitBucketCloudAPI )
source/platforms/bitbucket_cloud/BitBucketCloudGit.ts:52
↓ 1 callersFunctionbitBucketServerChangesToGitJSONDSL
( changes: BitBucketServerChangesValue[], commits: GitCommit[] )
source/platforms/bitbucket_server/BitBucketServerGit.ts:87
↓ 1 callersFunctionbitBucketServerCommitToGitCommit
* 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
← previousnext →101–200 of 621, ranked by callers