Documentation
¶
Index ¶
- type Checker
- type DiscussionChecker
- func (c *DiscussionChecker) Check(ctx context.Context, r *rule.WatchRule) (bool, bool, error)
- func (c *DiscussionChecker) CheckConditions(ctx context.Context, r *rule.WatchRule, conditions []string) (bool, bool, error)
- func (c *DiscussionChecker) CheckState(ctx context.Context, r *rule.WatchRule, conditions []string) (bool, bool, error)
- type IssueChecker
- func (c *IssueChecker) Check(ctx context.Context, r *rule.WatchRule) (bool, bool, error)
- func (c *IssueChecker) CheckConditions(ctx context.Context, r *rule.WatchRule, conditions []string) (bool, bool, error)
- func (c *IssueChecker) CheckState(ctx context.Context, r *rule.WatchRule, conditions []string) (bool, bool, error)
- type PRChecker
- func (c *PRChecker) Check(ctx context.Context, r *rule.WatchRule) (bool, bool, error)
- func (c *PRChecker) CheckConditions(ctx context.Context, r *rule.WatchRule, conditions []string) (bool, bool, error)
- func (c *PRChecker) CheckState(ctx context.Context, r *rule.WatchRule, conditions []string) (bool, bool, error)
- type WorkflowChecker
- func (c *WorkflowChecker) Check(ctx context.Context, r *rule.WatchRule) (bool, bool, error)
- func (c *WorkflowChecker) CheckConditions(ctx context.Context, r *rule.WatchRule, conditions []string) (bool, bool, error)
- func (c *WorkflowChecker) CheckState(ctx context.Context, r *rule.WatchRule, conditions []string) (bool, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker interface {
Check(ctx context.Context, r *rule.WatchRule) (bool, bool, error)
CheckConditions(ctx context.Context, r *rule.WatchRule, conditions []string) (bool, bool, error)
// CheckState checks whether any of the given conditions currently hold,
// without state-transition tracking. Used for until (termination) conditions
// that should match whenever the state is true, not only on transitions.
CheckState(ctx context.Context, r *rule.WatchRule, conditions []string) (bool, bool, error)
}
type DiscussionChecker ¶ added in v0.8.0
type DiscussionChecker struct {
// contains filtered or unexported fields
}
func NewDiscussionChecker ¶ added in v0.8.0
func NewDiscussionChecker(v4Client *githubv4.Client, currentUser string) *DiscussionChecker
func (*DiscussionChecker) CheckConditions ¶ added in v0.8.0
type IssueChecker ¶
type IssueChecker struct {
// contains filtered or unexported fields
}
func NewIssueChecker ¶
func NewIssueChecker(client *github.Client, currentUser string) *IssueChecker
func (*IssueChecker) CheckConditions ¶
type PRChecker ¶
type PRChecker struct {
// contains filtered or unexported fields
}
func (*PRChecker) CheckConditions ¶
type WorkflowChecker ¶ added in v0.7.0
type WorkflowChecker struct {
// contains filtered or unexported fields
}
func NewWorkflowChecker ¶ added in v0.7.0
func NewWorkflowChecker(client *github.Client, currentUser string) *WorkflowChecker
func (*WorkflowChecker) CheckConditions ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.