services

package
v0.0.0-...-87e4b86 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package services provides service implementations for the workflow package

Index

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

func NewProvider(cfg *config.Config) *Provider

NewProvider creates a new service provider

func (*Provider) GetCLIExecutor

func (p *Provider) GetCLIExecutor() *cli.Executor

GetCLIExecutor returns a CLI executor

func (*Provider) GetGitHubClient

func (p *Provider) GetGitHubClient() *github.Client

GetGitHubClient returns a GitHub API client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL