Documentation
¶
Index ¶
- func RenderBranchModified(in BranchModifiedInput) (string, error)
- func RenderPullRequestDescription(in PullRequestDescriptionInput) (string, error)
- func UpdateContext(ctx context.Context, data Data) context.Context
- type BranchModifiedInput
- type Data
- type DataRepository
- type PullRequestDescriptionInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderBranchModified ¶
func RenderBranchModified(in BranchModifiedInput) (string, error)
func RenderPullRequestDescription ¶
func RenderPullRequestDescription(in PullRequestDescriptionInput) (string, error)
Types ¶
type BranchModifiedInput ¶
type Data ¶ added in v0.12.0
type Data struct { Run map[string]string Repository DataRepository TaskName string }
Data is the root structure passed to templates.
func FromContext ¶ added in v0.12.0
FromContext reads template data from the given context. It initializes the template data if the context doesn't contain it.
type DataRepository ¶ added in v0.12.0
DataRepository is the sub-resource in templates that exposes info about a repository.
Click to show internal directories.
Click to hide internal directories.