Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatePullRequestConfig ¶
type CreatePullRequestConfig struct {
Description string
Branch string
IssueID string
Title string
OutputFile string
NonInteractive bool
TUI bool
DiffFile string
FromClipboard bool
DiffExclusions []string
DiffContextSize int
DiffOnlyPaths []string
DiffNoTests bool
DiffNoPackage bool
CommitsFile string
NoCommits bool
LlmCommand string
LlmStyle string
LlmParams map[string]string
CodeContextFiles []string
AdditionalSystemPrompt string
AdditionalUserPrompts []string
ContextFiles []string
}
CreatePullRequestConfig holds all configuration options for PR creation
type PullRequestService ¶
type PullRequestService struct {
// contains filtered or unexported fields
}
PullRequestService orchestrates the creation of pull requests
func NewPullRequestService ¶
func NewPullRequestService( gitAdapter git.Adapter, llmAdapter llm.Adapter, githubCliAdapter github.Adapter, fsAdapter filesystem.Adapter, ) *PullRequestService
NewPullRequestService creates a new service with the given adapters
func (*PullRequestService) CreatePullRequest ¶
func (s *PullRequestService) CreatePullRequest( ctx context.Context, config CreatePullRequestConfig, ) (*domain.PullRequestSpec, string, error)
CreatePullRequest orchestrates the PR creation process
Click to show internal directories.
Click to hide internal directories.