MCPcopy Index your code
hub / github.com/cli/cli / stepLogFilenameRegexp

Function stepLogFilenameRegexp

pkg/cmd/run/view/logs.go:274–278  ·  view source on GitHub ↗
(job shared.Job, step shared.Step)

Source from the content-addressed store, hash-verified

272}
273
274func stepLogFilenameRegexp(job shared.Job, step shared.Step) *regexp.Regexp {
275 sanitizedJobName := getJobNameForLogFilename(job.Name)
276 re := fmt.Sprintf(`^%s\/%d_.*\.txt$`, regexp.QuoteMeta(sanitizedJobName), step.Number)
277 return regexp.MustCompile(re)
278}
279
280/*
281If you're reading this comment by necessity, I'm sorry and if you're reading it for fun, you're welcome, you weirdo.

Callers 1

getZipLogMapFunction · 0.85

Calls 1

getJobNameForLogFilenameFunction · 0.85

Tested by

no test coverage detected