MCPcopy Index your code
hub / github.com/codeaashu/claude-code / findPrInStdout

Function findPrInStdout

src/tools/shared/gitOperationTracking.ts:73–76  ·  view source on GitHub ↗

Find a GitHub PR URL embedded anywhere in stdout and parse it.

(stdout: string)

Source from the content-addressed store, hash-verified

71
72/** Find a GitHub PR URL embedded anywhere in stdout and parse it. */
73function findPrInStdout(stdout: string): ReturnType<typeof parsePrUrl> {
74 const m = stdout.match(/https:\/\/github\.com\/[^/\s]+\/[^/\s]+\/pull\/\d+/)
75 return m ? parsePrUrl(m[0]) : null
76}
77
78// Exported for testing purposes
79export function parseGitCommitId(stdout: string): string | undefined {

Callers 2

detectGitOperationFunction · 0.85
trackGitOperationsFunction · 0.85

Calls 1

parsePrUrlFunction · 0.85

Tested by

no test coverage detected