Component evidence
Defines interfaces for fetching pull request observations from source code management systems. Reuse when integrating SCM polling and PR management.
// Source: https://github.com/Untrivial-ai/agent-orchestrator | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package ports
import (
"context"
"github.com/aoagents/agent-orchestrator/backend/internal/domain"
)
// ErrSCMPRNotFound is the legacy PR-observation not-found sentinel. It aliases
// the provider-neutral SCM sentinel so old PRObservation callers and new SCM
// callers compose under errors.Is.
var ErrSCMPRNotFound = ErrSCMNotFound
// PRObserver fetches one legacy PR observation by canonical PR URL.
type PRObserver interface {
Observe(ctx context.Context, prURL string) (PRObservation, error)
}
// PRObservation is what the SCM poller reports for one PR. Fetched is the
... (truncated -- full source via MCP)