Documentation
¶
Overview ¶
Package reviewhost publishes reviewed RoleMux candidates to optional human review surfaces. GitHub support uses the installed git and gh CLIs, and never owns credentials.
Index ¶
- Variables
- type Feedback
- type GitHub
- func (g *GitHub) Check(ctx context.Context, preferredRemote string) (remoteInfo, error)
- func (g *GitHub) FetchFeedback(ctx context.Context, review task.ExternalReview) (Feedback, error)
- func (g *GitHub) Publish(ctx context.Context, st task.State, record task.ApprovalRecord) (task.ExternalReview, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Feedback ¶
type Feedback struct {
Text string
Review task.ExternalReview
}
type GitHub ¶
type GitHub struct {
RepoRoot string
GitPath string
GHPath string
Env []string
Process runner.ProcessFunc
Now func() time.Time
}
GitHub is an injectable host adapter. Production uses RunProcess; tests can intercept only network-mutating push/gh calls while retaining real local Git.
func (*GitHub) Check ¶
Check verifies the local prerequisites without changing repository or remote state.
func (*GitHub) FetchFeedback ¶
FetchFeedback reads only comments/reviews newer than the saved cursors. The caller decides whether importing them means request_changes.
Click to show internal directories.
Click to hide internal directories.