Documentation
¶
Index ¶
- func ClaimIssue(ctx context.Context, repo types.Repo, issueNumber int, agentName string) error
- func ClaimPullRequest(ctx context.Context, repo types.Repo, prNumber int, ownerLabel string) error
- func DispatchTrustReason(issue types.Issue) string
- func GetAllOpenIssues(ctx context.Context) ([]types.Issue, error)
- func GetIssueOwner(ctx context.Context, repo types.Repo, issueNumber int) (string, error)
- func GetNeedsReviewIssues(ctx context.Context) ([]types.Issue, error)
- func GetOpenPRNumber(ctx context.Context, repo types.Repo, issueNumber int) (int, error)
- func GetOpenPRs(ctx context.Context) ([]types.PullRequest, error)
- func GetReadyIssues(ctx context.Context) ([]types.Issue, error)
- func GetWorkflowIssues(ctx context.Context) ([]types.Issue, error)
- func HasOpenPR(ctx context.Context, repo types.Repo, issueNumber int) (bool, error)
- func IsDispatchTrustedIssue(issue types.Issue) bool
- func ParseBranchIssueNumber(branch string) int
- func PostComment(ctx context.Context, repo types.Repo, issueNumber int, body string) error
- func SetIssueLabels(ctx context.Context, repo types.Repo, issueNumber int, addLabels []string, ...) error
- func UnclaimIssue(ctx context.Context, repo types.Repo, issueNumber int, ...) error
- func UnclaimPullRequest(ctx context.Context, repo types.Repo, prNumber int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClaimIssue ¶
ClaimIssue sets the owner label on an issue (removes all other workflow/owner labels).
func ClaimPullRequest ¶
func DispatchTrustReason ¶
func GetAllOpenIssues ¶
GetAllOpenIssues fetches open issues with workflow labels from all repos.
func GetIssueOwner ¶
GetIssueOwner returns the owner label (e.g. "claude-a") for an issue, or "" if unclaimed.
func GetNeedsReviewIssues ¶
GetNeedsReviewIssues returns issues with the "needs-review" label. Used by the scheduler to intake review jobs for agent-assisted review.
func GetOpenPRNumber ¶
GetOpenPRNumber returns the PR number for an issue-N branch, or 0 if none.
func GetOpenPRs ¶
func GetOpenPRs(ctx context.Context) ([]types.PullRequest, error)
func GetReadyIssues ¶
GetReadyIssues returns issues with the "ready" label from configured repos. This is the only GitHub label the operator reads for dispatch decisions. After intake, all state is tracked in AgentJob CRDs.
func IsDispatchTrustedIssue ¶
func ParseBranchIssueNumber ¶
func PostComment ¶
PostComment posts a comment on a GitHub issue.
func SetIssueLabels ¶
func SetIssueLabels(ctx context.Context, repo types.Repo, issueNumber int, addLabels []string, comment string) error
SetIssueLabels removes all workflow + owner labels, then adds exactly the given labels. This is the ONLY function that should modify workflow labels on issues.
Types ¶
This section is empty.