Documentation
¶
Index ¶
- type CommitVerifier
- type Rule
- func (r *Rule) CheckAction(mapping workflow.ActionMapping) []*diagnostic.Error
- func (r *Rule) CheckWorkflow(mapping workflow.WorkflowMapping) []*diagnostic.Error
- func (r *Rule) Fix() string
- func (r *Rule) ID() string
- func (r *Rule) Online() bool
- func (r *Rule) Required() bool
- func (r *Rule) Why() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitVerifier ¶
type CommitVerifier interface {
VerifyCommit(ctx context.Context, owner, repo, sha string) (bool, error)
}
CommitVerifier checks whether a commit SHA is reachable from any branch or tag in the given repository.
type Rule ¶
type Rule struct {
Verifier CommitVerifier
}
func (*Rule) CheckAction ¶
func (r *Rule) CheckAction(mapping workflow.ActionMapping) []*diagnostic.Error
func (*Rule) CheckWorkflow ¶
func (r *Rule) CheckWorkflow(mapping workflow.WorkflowMapping) []*diagnostic.Error
Click to show internal directories.
Click to hide internal directories.