Documentation
¶
Overview ¶
Package github provides GitHub-specific implementations of VCS interfaces
Package github provides GitHub-specific implementations of VCS interfaces
Index ¶
- type Adapter
- func (a *Adapter) CloneRepository(owner, repo, branch string, issueNumber int) (string, error)
- func (a *Adapter) CreateBranch(owner, repo, branchName, baseBranch string) error
- func (a *Adapter) CreateDraftPullRequest(owner, repo, title, body, head, base string) (vcs.PullRequest, error)
- func (a *Adapter) GetAssignedIssues(username string, since time.Time, limit int) ([]vcs.Issue, error)
- func (a *Adapter) GetAuthenticatedUser() (string, error)
- func (a *Adapter) GetDefaultBranch(owner, repo string) (string, error)
- func (a *Adapter) GetIssue(owner, repo string, number int) (vcs.Issue, error)
- func (a *Adapter) GetIssueWithComments(owner, repo string, number int) (vcs.Issue, error)
- func (a *Adapter) GetPullRequestsForIssue(owner, repo string, issueNumber int) ([]vcs.PullRequest, error)
- func (a *Adapter) GetRepositories() ([]vcs.Repository, error)
- func (a *Adapter) GetRepository(owner, repo string) (vcs.Repository, error)
- func (a *Adapter) RespondToIssue(owner, repo string, issueNumber int, comment string) error
- type Client
- func (c *Client) CloneRepository(owner, repo, branch string, issueNumber int) (string, error)
- func (c *Client) CreateBranch(owner, repo, branchName, baseBranch string) error
- func (c *Client) CreateImplementationFile(owner, repo, branchName string, issueNumber int) error
- func (c *Client) GetIssueComments(owner, repo string, issueNumber int) ([]*github.IssueComment, error)
- func (c *Client) GetIssueDetails(owner, repo string, number int) (*models.Issue, error)
- func (c *Client) GetIssues(owner, repo string) ([]*github.Issue, error)
- func (c *Client) GetPullRequestsForIssue(owner, repo string, issueNumber int) ([]*github.PullRequest, error)
- func (c *Client) GetRepositories() ([]*github.Repository, error)
- func (c *Client) GetUserInfo() (*github.User, error)
- func (c *Client) RespondToIssue(owner, repo string, issueNumber int, comment string) error
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter provides a GitHub implementation of the vcs.Service interface
func NewAdapter ¶
NewAdapter creates a new GitHub adapter
func (*Adapter) CloneRepository ¶
CloneRepository clones a GitHub repository to a local directory
func (*Adapter) CreateBranch ¶
CreateBranch creates a new branch from the specified base branch
func (*Adapter) CreateDraftPullRequest ¶
func (a *Adapter) CreateDraftPullRequest(owner, repo, title, body, head, base string) (vcs.PullRequest, error)
CreateDraftPullRequest creates a new draft pull request
func (*Adapter) GetAssignedIssues ¶
func (a *Adapter) GetAssignedIssues(username string, since time.Time, limit int) ([]vcs.Issue, error)
GetAssignedIssues retrieves issues assigned to a user since a specific time
func (*Adapter) GetAuthenticatedUser ¶
GetAuthenticatedUser gets the currently authenticated user
func (*Adapter) GetDefaultBranch ¶
GetDefaultBranch gets the default branch for a repository
func (*Adapter) GetIssueWithComments ¶
GetIssueWithComments retrieves an issue with all its comments
func (*Adapter) GetPullRequestsForIssue ¶
func (a *Adapter) GetPullRequestsForIssue(owner, repo string, issueNumber int) ([]vcs.PullRequest, error)
GetPullRequestsForIssue gets all pull requests that reference an issue
func (*Adapter) GetRepositories ¶
func (a *Adapter) GetRepositories() ([]vcs.Repository, error)
GetRepositories gets a list of repositories the authenticated user has access to
func (*Adapter) GetRepository ¶
func (a *Adapter) GetRepository(owner, repo string) (vcs.Repository, error)
GetRepository retrieves repository information
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles GitHub API interactions
func (*Client) CloneRepository ¶
CloneRepository clones a GitHub repository to a local directory
func (*Client) CreateBranch ¶
CreateBranch creates a new branch from the specified base branch
func (*Client) CreateImplementationFile ¶
CreateImplementationFile creates an implementation plan as developer instructions and passes it to the CLI tool
func (*Client) GetIssueComments ¶
func (c *Client) GetIssueComments(owner, repo string, issueNumber int) ([]*github.IssueComment, error)
GetIssueComments gets comments for an issue
func (*Client) GetIssueDetails ¶
GetIssueDetails retrieves full details of an issue including comments
func (*Client) GetPullRequestsForIssue ¶
func (c *Client) GetPullRequestsForIssue(owner, repo string, issueNumber int) ([]*github.PullRequest, error)
GetPullRequestsForIssue gets all pull requests that reference an issue
func (*Client) GetRepositories ¶
func (c *Client) GetRepositories() ([]*github.Repository, error)
GetRepositories gets a list of repositories the authenticated user has access to
func (*Client) GetUserInfo ¶
GetUserInfo gets information about the authenticated user
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements vcs.ServiceProvider for GitHub
func NewProvider ¶
NewProvider creates a new GitHub service provider
func (*Provider) GetService ¶
GetService returns a GitHub implementation of vcs.Service