Versions in this module Expand all Collapse all v0 v0.0.1 Feb 25, 2025 Changes in this version + 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 struct + Commits []*object.Commit + Files []string + Summary string + type Changes struct + Commits []string + Files []string + Summary string + type Comment struct + Acknowledged bool + Body string + DiffHunk string + HTMLURL string + ID int64 + Reactions types.Reactions + URL string + UserID int64 + type Issue struct + Body string + Comments []*Comment + CreatedAt string + HTMLURL string + ID int + Labels []string + Number int + PullRequests []*PullRequest + SourceURL string + State string + Title string + UpdatedAt string + func (i *Issue) Completed() bool + func (i *Issue) PRHasUnresolvedComments() (*PullRequest, bool) + func (i *Issue) PrExists() bool + func (i *Issue) ToString() string + type PullRequest struct + Body string + Comments []*Comment + CreatedAt string + Diff string + IssueUrl string + Labels []string + LinkedIssueUrls []string + Number int + Title string + UpdatedAt string + func (p *PullRequest) FirstUnresolvedComment() *Comment + func (p *PullRequest) HasUnresolvedComments() bool + type Repository struct + Issues map[int]*Issue + LastSync time.Time + Locked bool + Logger logr.Logger + Mu sync.RWMutex + Path string + PullRequests map[int]*PullRequest + Remote remote.Provider + RemotePath string + RemoteProvider remote.ProviderSettings + Schedule string + State *Status + func NewRepository(path string) *Repository + func NewRepositoryWithRemote(path string, remote remote.Provider) *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 struct + ChangedFiles []string + CurrentBranch string + HasChanges bool + IsClean bool