19 lines
945 B
Go
19 lines
945 B
Go
package main
|
|
|
|
import "strings"
|
|
|
|
// FirstCommit is main's first commit of a listed repository: its README, naming the repository's purpose, and
|
|
// nothing else: the checker runs a repository's tests by their language's convention (ADR 0445), so no script is written
|
|
// (ADR 0529 §5).
|
|
func FirstCommit(name string, r Repo) map[string]string {
|
|
purpose := strings.TrimSpace(r.Description)
|
|
if purpose == "" {
|
|
purpose = "(its purpose is not described yet: the gitea module's config value `repositories` describes it)"
|
|
}
|
|
readme := "# " + name + "\n\n" + purpose + "\n\n" +
|
|
"Made by the mesh from the gitea module's config value `repositories` (novox/hq ADR 0428). Main takes no push: " +
|
|
"a change reaches it by a pull request whose `mesh/check` passed: the checker's verdict on its head merged onto " +
|
|
"main, its tests run by their language's convention (novox/hq ADR 0447, ADR 0445).\n"
|
|
return map[string]string{"README.md": readme}
|
|
}
|