MCPcopy Create free account
hub / github.com/cli/cli / stepLogFilenameRegexp

Function stepLogFilenameRegexp

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

Source from the content-addressed store, hash-verified

278}
279
280func stepLogFilenameRegexp(job shared.Job, step shared.Step) *regexp.Regexp {
281 sanitizedJobName := getJobNameForLogFilename(job.Name)
282 re := fmt.Sprintf(`^%s\/%d_.*\.txt$`, regexp.QuoteMeta(sanitizedJobName), step.Number)
283 return regexp.MustCompile(re)
284}
285
286/*
287If 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