Documentation
¶
Index ¶
Constants ¶
View Source
const GithubActionsBotID int64 = 41898282
View Source
const PreambleDefaultMessage = "Thanks for your contribution!\n Please complete the following tasks related to your changes and tick " +
"the checklists when complete."
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Checklist ¶
type Checklist struct {
Items []ChecklistItem
Meta ChecklistMetadata
Header string
Raw string
}
func (Checklist) ChecklistCompleted ¶
func (Checklist) CompletionSummary ¶
CompletionSummary formats the validation result of the checklist.
func (Checklist) MarkdownSummary ¶
MarkdownSummary formats the markdown for this checklist on the job summary page.
type ChecklistItem ¶
type ChecklistMetadata ¶
func ParseIndicator ¶
func ParseIndicator(s string) ChecklistMetadata
ParseIndicator will parse the indicator and extract the metadata within.
type ChecklistsForPath ¶
type ChecklistsForPath []string
func (ChecklistsForPath) ToChecklistItemsMD ¶
func (c ChecklistsForPath) ToChecklistItemsMD(filenameGlob string) string
type Config ¶
type Config struct {
PathsChecklists map[string]ChecklistsForPath
Preamble string
}
func ConfigFromInputs ¶
func ConfigFromInputs(action *githubactions.Action) (*Config, error)
Click to show internal directories.
Click to hide internal directories.