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

Function stepLogFilenameRegexp

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

Source from the content-addressed store, hash-verified

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