Versions in this module Expand all Collapse all v0 v0.3.0 May 26, 2026 v0.2.1 May 26, 2026 Changes in this version + func DetectProvider(projectDir string) (string, string, string) + func FormatCIStatus(status *CIStatus) string + func FormatIssues(issues []GitIssue) string + func FormatPRs(prs []PullRequest) string + type BlameLine struct + Author string + Commit string + Date time.Time + LineNo int + type CICheck struct + Duration time.Duration + Name string + Status string + URL string + type CIStatus struct + Checks []CICheck + State string + URL string + type CommitInfo struct + Author string + Date time.Time + FilesChanged int + Hash string + Message string + type Context = GitContext + func NewContext(repoDir string) *Context + type FileInfo = GitFileInfo + type GitContext struct + RepoDir string + func NewGitContext(repoDir string) *GitContext + func (gc *GitContext) BuildContextForFile(path string) string + func (gc *GitContext) BuildContextForSession() string + func (gc *GitContext) GetBlame(path string, startLine, endLine int) ([]BlameLine, error) + func (gc *GitContext) GetBranch() (string, error) + func (gc *GitContext) GetDiffSummary() (string, error) + func (gc *GitContext) GetFileInfo(path string) (*GitFileInfo, error) + func (gc *GitContext) GetRecentChanges(days int) ([]CommitInfo, error) + func (gc *GitContext) GetRelatedFiles(path string) ([]string, error) + func (gc *GitContext) GetUncommitted() ([]string, error) + func (gc *GitContext) IsRecentlyModified(path string, within time.Duration) bool + type GitFileInfo struct + Blame []BlameLine + CommitCount int + Contributors []string + LastAuthor string + LastCommitMsg string + LastModified time.Time + Path string + RecentCommits []CommitInfo + type GitIssue struct + Author string + Body string + CreatedAt time.Time + Labels []string + Number int + State string + Title string + URL string + type GitProvider struct + BaseURL string + Owner string + Repo string + Token string + Type string + func NewGitProvider(providerType, token, owner, repo string) *GitProvider + func (gp *GitProvider) CreateIssue(title, body string, labels []string) (*GitIssue, error) + func (gp *GitProvider) CreatePR(title, body, branch, baseBranch string) (*PullRequest, error) + func (gp *GitProvider) GetCIStatus(branch string) (*CIStatus, error) + func (gp *GitProvider) GetIssue(number int) (*GitIssue, error) + func (gp *GitProvider) GetReviewComments(prNumber int) ([]string, error) + func (gp *GitProvider) ListIssues(state string, limit int) ([]GitIssue, error) + func (gp *GitProvider) ListPRs(state string, limit int) ([]PullRequest, error) + type Issue = GitIssue + type Provider = GitProvider + func NewProvider(providerType, token, owner, repo string) *Provider + type PullRequest struct + BaseBranch string + Body string + Branch string + Draft bool + Labels []string + Mergeable bool + Number int + State string + Title string + URL string