MCPcopy
hub / github.com/danger/danger-js / getJSONURLFromSTDOUT

Function getJSONURLFromSTDOUT

source/commands/utils/runDangerSubprocess.ts:145–151  ·  view source on GitHub ↗
(stdout: string)

Source from the content-addressed store, hash-verified

143
144/** Pulls out a URL that's from the STDOUT */
145const getJSONURLFromSTDOUT = (stdout: string): string | undefined => {
146 const match = stdout.match(/danger-results:\/\/*.+json/)
147 if (!match) {
148 return undefined
149 }
150 return match[0]
151}
152
153/** Pulls the JSON directly out, this has proven to be less reliable */
154const getJSONFromSTDOUT = (stdout: string): string | undefined => {

Callers 1

runDangerSubprocessFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected