Documentation
¶
Overview ¶
Package transfer provides the transfer rules engine for cross-repository issue routing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IssueInput ¶
IssueInput represents the issue data used for rule matching.
type MatchResult ¶
type MatchResult struct {
Matched bool
Rule *config.TransferRule
Target string
Reason string
}
MatchResult contains the result of rule matching.
type RuleMatcher ¶
type RuleMatcher struct {
// contains filtered or unexported fields
}
RuleMatcher evaluates transfer rules against issues.
func NewRuleMatcher ¶
func NewRuleMatcher(rules []config.TransferRule) *RuleMatcher
NewRuleMatcher creates a new RuleMatcher with the given rules. It filters out disabled rules and sorts by priority (descending).
func (*RuleMatcher) Match ¶
func (m *RuleMatcher) Match(issue *IssueInput) *MatchResult
Match evaluates all rules against the issue and returns the first match. Returns a MatchResult with Matched=false if no rules match.
Click to show internal directories.
Click to hide internal directories.