transfer

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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

type IssueInput struct {
	Title  string
	Body   string
	Labels []string
	Author string
}

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.

Jump to

Keyboard shortcuts

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