checker

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 6 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, error)
	CheckConditions(ctx context.Context, r *rule.WatchRule, conditions []string) (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, error)

func (*IssueChecker) CheckConditions

func (c *IssueChecker) CheckConditions(ctx context.Context, r *rule.WatchRule, conditions []string) (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, error)

func (*PRChecker) CheckConditions

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

Jump to

Keyboard shortcuts

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