checker

package
v0.10.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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) Check added in v0.8.0

func (c *DiscussionChecker) Check(ctx context.Context, r *rule.WatchRule) (bool, bool, error)

func (*DiscussionChecker) CheckConditions added in v0.8.0

func (c *DiscussionChecker) CheckConditions(ctx context.Context, r *rule.WatchRule, conditions []string) (bool, bool, error)

func (*DiscussionChecker) CheckState added in v0.8.0

func (c *DiscussionChecker) CheckState(ctx context.Context, r *rule.WatchRule, conditions []string) (bool, bool, error)

type IssueChecker

type IssueChecker struct {
	// contains filtered or unexported fields
}

func NewIssueChecker

func NewIssueChecker(client *github.Client, currentUser string) *IssueChecker

func (*IssueChecker) Check

func (c *IssueChecker) Check(ctx context.Context, r *rule.WatchRule) (bool, bool, error)

func (*IssueChecker) CheckConditions

func (c *IssueChecker) CheckConditions(ctx context.Context, r *rule.WatchRule, conditions []string) (bool, bool, error)

func (*IssueChecker) CheckState added in v0.4.1

func (c *IssueChecker) CheckState(ctx context.Context, r *rule.WatchRule, conditions []string) (bool, bool, error)

type PRChecker

type PRChecker struct {
	// contains filtered or unexported fields
}

func NewPRChecker

func NewPRChecker(client *github.Client, currentUser string) *PRChecker

func (*PRChecker) Check

func (c *PRChecker) Check(ctx context.Context, r *rule.WatchRule) (bool, bool, error)

func (*PRChecker) CheckConditions

func (c *PRChecker) CheckConditions(ctx context.Context, r *rule.WatchRule, conditions []string) (bool, bool, error)

func (*PRChecker) CheckState added in v0.4.1

func (c *PRChecker) CheckState(ctx context.Context, r *rule.WatchRule, conditions []string) (bool, bool, error)

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) Check added in v0.7.0

func (c *WorkflowChecker) Check(ctx context.Context, r *rule.WatchRule) (bool, bool, error)

func (*WorkflowChecker) CheckConditions added in v0.7.0

func (c *WorkflowChecker) CheckConditions(ctx context.Context, r *rule.WatchRule, conditions []string) (bool, bool, error)

func (*WorkflowChecker) CheckState added in v0.7.0

func (c *WorkflowChecker) CheckState(ctx context.Context, r *rule.WatchRule, conditions []string) (bool, bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL