Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultMintURL = "https://fullsend-mint-gljhbkcloq-uc.a.run.app"
DefaultMintURL is the hosted public mint URL used when --mint-url is not explicitly provided. Users who self-host a mint can override this via the --mint-url flag.
View Source
const StaleHeadExitCode = 10
StaleHeadExitCode is the process exit code used when a review is discarded because the PR HEAD moved after the agent reviewed it. post-review.sh uses this to detect stale-head outcomes and re-dispatch a fresh review for the current HEAD.
Variables ¶
This section is empty.
Functions ¶
func CommitSHA ¶ added in v0.18.0
func CommitSHA() string
CommitSHA returns the git commit SHA set at build time.
Types ¶
type ReviewFinding ¶ added in v0.8.0
type ReviewFinding struct {
Severity string `json:"severity"`
Category string `json:"category"`
File string `json:"file"`
Line int `json:"line,omitempty"`
Description string `json:"description"`
Remediation string `json:"remediation,omitempty"`
Actionable bool `json:"actionable,omitempty"`
}
ReviewFinding is the structured form emitted by the review agent.
type ReviewResult ¶ added in v0.2.0
type ReviewResult struct {
Body string `json:"body"`
Action string `json:"action"` // "approve", "request-changes", "comment", "reject", "failure"
HeadSHA string `json:"head_sha"` // commit SHA the agent reviewed
Reason string `json:"reason"` // failure reason (when action is "failure")
Findings []ReviewFinding `json:"findings"`
}
ReviewResult represents a parsed review result file.
Source Files
¶
- admin.go
- agent.go
- bootstrap_input.go
- bootstrap_scan.go
- discover_slugs.go
- dispatch.go
- fetchserver.go
- fetchskill.go
- foreign.go
- github.go
- github_client.go
- inference.go
- lock.go
- migrate.go
- mint.go
- mint_setup.go
- minttoken.go
- orgconfig.go
- poll.go
- postcomment.go
- postreview.go
- preflight_github.go
- readbody.go
- reconcilestatus.go
- repos.go
- root.go
- run.go
- scan.go
- tokenscope.go
- vendor.go
Click to show internal directories.
Click to hide internal directories.