| package commit_msg |
| |
| import "text/template" |
| |
| const ( |
| // TmplNameCanary is the name of the commit message template used by |
| // canary rolls. |
| TmplNameCanary = "canary" |
| ) |
| |
| var ( |
| // TmplCanary is the commit message template used by canary rolls. |
| // It can be referenced in config files using TmplNameCanary. |
| tmplCanary = template.Must(parseCommitMsgTemplate(tmplCommitMsg, TmplNameCanary, |
| `{{- define "subject" }}Canary roll {{ .ChildName }} to {{ .RollingTo }}{{ end -}} |
| {{- define "revisions" }}{{ if .ChildLogURL }}{{ .ChildLogURL }}{{ end -}}{{end -}} |
| {{- define "boilerplate" }} |
| {{ if .ExternalChangeId -}} |
| This canary roll also includes patch from change {{ .ExternalChangeId }} |
| |
| {{ end -}} |
| DO_NOT_SUBMIT: This canary roll is only for testing |
| |
| Documentation for Autoroller Canaries is here: |
| go/autoroller-canary-bots (Googlers only) |
| |
| To report a problem with the AutoRoller itself, please file a bug: |
| https://issues.skia.org/issues/new?component=1389291&template=1850622 |
| {{ end -}} |
| {{- define "footer" -}} |
| Commit: false |
| {{ if .CqExtraTrybots -}} |
| Cq-Include-Trybots: {{ stringsJoin .CqExtraTrybots ";" }} |
| {{ end -}} |
| {{ if .CqDoNotCancelTrybots -}} |
| Cq-Do-Not-Cancel-Tryjobs: true |
| {{ end -}} |
| {{- end -}}`)) |
| ) |