Documentation
¶
Index ¶
- func CommitPrompt(changes string) string
- func IssuePrompt(issue string) string
- func PRCommentPrompt(issue, diffs, comment, diffHunk string) string
- func PRPrompt(changes string) string
- type BranchChanges
- type Changes
- type Comment
- type Issue
- type PullRequest
- type Repository
- func (r *Repository) ChangeSummary() (string, error)
- func (r *Repository) CheckoutBranch(branchName string) error
- func (r *Repository) Clone(repoURL string) error
- func (r *Repository) Commit(message string) error
- func (r *Repository) CreateBranch(branchName string) error
- func (r *Repository) Fetch() error
- func (r *Repository) GetIssues() ([]*Issue, error)
- func (r *Repository) GetPullRequests() []*PullRequest
- func (r *Repository) Push() error
- func (r *Repository) Reset() error
- func (r *Repository) Status() (*Status, error)
- func (r *Repository) Sync(agents map[int]*agent.Agent) error
- func (r *Repository) UpdateIssues() error
- func (r *Repository) UpdatePullRequests() error
- func (r *Repository) UpdateStatus() error
- func (r *Repository) Upsert(repoURL string) error
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitPrompt ¶
func IssuePrompt ¶
func PRCommentPrompt ¶
Types ¶
type BranchChanges ¶
type Issue ¶
type Issue struct { ID int `json:"id"` Number int `json:"number"` Title string `json:"title"` Body string `json:"body"` State string `json:"state"` HTMLURL string `json:"html_url"` SourceURL string `json:"source_url"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` Comments []*Comment `json:"comments"` PullRequests []*PullRequest `json:"pull_requests"` Labels []string `json:"labels"` }
func (*Issue) PRHasUnresolvedComments ¶
func (i *Issue) PRHasUnresolvedComments() (*PullRequest, bool)
type PullRequest ¶
type PullRequest struct { Number int `json:"number"` Title string `json:"title"` Body string `json:"body"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` Labels []string `json:"labels"` IssueUrl string `json:"issue_url"` LinkedIssueUrls []string `json:"linked_issue_urls"` Diff string `json:"diff"` Comments []*Comment `json:"comments"` }
func (*PullRequest) FirstUnresolvedComment ¶
func (p *PullRequest) FirstUnresolvedComment() *Comment
func (*PullRequest) HasUnresolvedComments ¶
func (p *PullRequest) HasUnresolvedComments() bool
type Repository ¶
type Repository struct { Path string `json:"path"` RemoteProvider remote.ProviderSettings `json:"remoteProvider"` Schedule string `json:"schedule"` LastSync time.Time `json:"lastSync"` State *Status `json:"status,omitempty"` RemotePath string `json:"remotePath,omitempty"` Issues map[int]*Issue `json:"-"` PullRequests map[int]*PullRequest `json:"-"` Mu sync.RWMutex `json:"-"` Locked bool `json:"locked"` Logger logr.Logger `json:"-"` Remote remote.Provider `json:"-"` }
func NewRepository ¶
func NewRepository(path string) *Repository
func NewRepositoryWithRemote ¶
func NewRepositoryWithRemote(path string, remote remote.Provider) *Repository
func (*Repository) ChangeSummary ¶
func (r *Repository) ChangeSummary() (string, error)
func (*Repository) CheckoutBranch ¶
func (r *Repository) CheckoutBranch(branchName string) error
func (*Repository) Clone ¶
func (r *Repository) Clone(repoURL string) error
func (*Repository) Commit ¶
func (r *Repository) Commit(message string) error
func (*Repository) CreateBranch ¶
func (r *Repository) CreateBranch(branchName string) error
func (*Repository) Fetch ¶
func (r *Repository) Fetch() error
func (*Repository) GetIssues ¶
func (r *Repository) GetIssues() ([]*Issue, error)
func (*Repository) GetPullRequests ¶
func (r *Repository) GetPullRequests() []*PullRequest
func (*Repository) Push ¶
func (r *Repository) Push() error
func (*Repository) Reset ¶
func (r *Repository) Reset() error
func (*Repository) Status ¶
func (r *Repository) Status() (*Status, error)
func (*Repository) UpdateIssues ¶
func (r *Repository) UpdateIssues() error
func (*Repository) UpdatePullRequests ¶
func (r *Repository) UpdatePullRequests() error
func (*Repository) UpdateStatus ¶
func (r *Repository) UpdateStatus() error
func (*Repository) Upsert ¶
func (r *Repository) Upsert(repoURL string) error
Click to show internal directories.
Click to hide internal directories.