MCPcopy Index your code
hub / github.com/coder/coder / addStableSince

Function addStableSince

scripts/release/main.go:271–277  ·  view source on GitHub ↗

addStableSince adds a stable since note to the release body. Example: > ## Stable (since April 23, 2024)

(date time.Time, body string)

Source from the content-addressed store, hash-verified

269//
270// > ## Stable (since April 23, 2024)
271func addStableSince(date time.Time, body string) string {
272 // Protect against adding twice.
273 if strings.Contains(body, "> ## Stable (since") {
274 return body
275 }
276 return fmt.Sprintf("> ## Stable (since %s)\n\n", date.Format("January 02, 2006")) + body
277}
278
279// removeMainlineBlurb removes the mainline blurb from the release body.
280//

Callers 2

Test_addStableSinceFunction · 0.85

Calls 2

FormatMethod · 0.65
ContainsMethod · 0.45

Tested by 1

Test_addStableSinceFunction · 0.68