Documentation
¶
Index ¶
- func ApplyReviewToBody(body, review string) string
- func New() *redant.Command
- type Draft
- type GhClient
- func (g *GhClient) CreatePR(ctx context.Context, draft Draft) (string, error)
- func (g *GhClient) EditPR(ctx context.Context, draft Draft) error
- func (g *GhClient) EnsureAvailable(ctx context.Context) error
- func (g *GhClient) MergePR(ctx context.Context, method string, dryRun bool) (string, error)
- func (g *GhClient) SyncPR(ctx context.Context, rc RepoContext, dryRun bool) error
- func (g *GhClient) ViewPR(ctx context.Context) (string, error)
- type RepoContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyReviewToBody ¶
ApplyReviewToBody merges a review report into the PR Test plan section.
Types ¶
type Draft ¶
Draft holds generated PR metadata before submission.
func BuildDraft ¶
func BuildDraft(ctx context.Context, rc RepoContext) (Draft, error)
BuildDraft assembles a PR title and body from git history (rule-based, no AI).
func EnhanceDraft ¶
func EnhanceDraft(ctx context.Context, provider aiprovider.Provider, draft Draft) (Draft, bool, error)
EnhanceDraft optionally refines a rule-based PR draft using AI.
type GhClient ¶
type GhClient struct {
// contains filtered or unexported fields
}
GhClient wraps the GitHub CLI.
func NewGhClient ¶
NewGhClient creates a gh client scoped to a repository directory.
func (*GhClient) EnsureAvailable ¶
EnsureAvailable verifies gh is installed and authenticated enough to run.
type RepoContext ¶
RepoContext holds git metadata needed for PR operations.
func LoadRepoContext ¶
func LoadRepoContext(ctx context.Context, repoRoot string) (RepoContext, error)
LoadRepoContext resolves branch, upstream, and base ref for the current repo.
Click to show internal directories.
Click to hide internal directories.