Documentation
¶
Overview ¶
Package services provides service implementations for the workflow package
Index ¶
- type GitHubImplementationService
- func (s *GitHubImplementationService) CreateImplementationPromptAndExecute(owner, repo, branchName string, issueNumber int) (string, error)
- func (s *GitHubImplementationService) CreatePullRequestForIssue(owner, repo, branch, base string, issueNumber int, claudeOutput string, ...) (*github.PullRequest, error)
- func (s *GitHubImplementationService) GenerateBranchAndTitle(owner, repo, title, body string) (string, string, error)
- func (s *GitHubImplementationService) RespondToIssue(owner, repo string, issueNumber int, comment string) (string, error)
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubImplementationService ¶
type GitHubImplementationService struct {
// contains filtered or unexported fields
}
GitHubImplementationService provides GitHub implementation services
func NewGitHubImplementationService ¶
func NewGitHubImplementationService(cfg *config.Config) *GitHubImplementationService
NewGitHubImplementationService creates a new GitHub implementation service
func (*GitHubImplementationService) CreateImplementationPromptAndExecute ¶
func (s *GitHubImplementationService) CreateImplementationPromptAndExecute(owner, repo, branchName string, issueNumber int) (string, error)
CreateImplementationPromptAndExecute creates an implementation plan and executes it using CLI Returns the Claude CLI output so it can be used in PR descriptions
func (*GitHubImplementationService) CreatePullRequestForIssue ¶
func (s *GitHubImplementationService) CreatePullRequestForIssue(owner, repo, branch, base string, issueNumber int, claudeOutput string, repoDir string) (*github.PullRequest, error)
CreatePullRequestForIssue creates a PR specifically linked to an issue claudeOutput parameter contains the implementation output from Claude CLI repoDir is the directory where the repository is cloned
func (*GitHubImplementationService) GenerateBranchAndTitle ¶
func (s *GitHubImplementationService) GenerateBranchAndTitle(owner, repo, title, body string) (string, string, error)
GenerateBranchAndTitle generates a branch name and PR title
func (*GitHubImplementationService) RespondToIssue ¶
func (s *GitHubImplementationService) RespondToIssue(owner, repo string, issueNumber int, comment string) (string, error)
RespondToIssue posts a comment to a GitHub issue
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider creates service instances
func NewProvider ¶
NewProvider creates a new service provider
func (*Provider) GetCLIExecutor ¶
GetCLIExecutor returns a CLI executor
func (*Provider) GetGitHubClient ¶
GetGitHubClient returns a GitHub API client