MCPcopy Create free account
hub / github.com/bluekeyes/patch2pr / dateFromEnv

Function dateFromEnv

cmd/patch2pr/main.go:479–484  ·  view source on GitHub ↗
(dateType string)

Source from the content-addressed store, hash-verified

477}
478
479func dateFromEnv(dateType string) time.Time {
480 if d, err := gitdiff.ParsePatchDate(os.Getenv(fmt.Sprintf("GIT_%s_DATE", dateType))); err == nil {
481 return d
482 }
483 return time.Time{}
484}
485
486func isCode(err error, code int) bool {
487 var rerr *github.ErrorResponse

Callers 1

fillHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected