Versions in this module Expand all Collapse all v0 v0.0.1 Feb 25, 2025 Changes in this version + const GITHUB + const LOCAL + func ProviderTypeToString(providerType int) string + type Provider interface + AddCommentReaction func(repoPath, reaction string, commentID int64) error + AddLabelToIssue func(issueNumber int, label string) error + CreateDraftPR func(path string, input types.PullRequestInput) error + CreateIssue func(issue types.Issue) (int, error) + CreateIssueComment func(path string, issueNumber int, comment types.Comment) error + CreatePRComment func(path string, prNumber int, comment types.Comment) error + DeleteIssue func(repoPath string, issueNumber int) error + DeletePullRequest func(repoPath string, prNumber int) error + FetchComments func(owner, repo string, prNumber int) ([]*types.Comment, error) + FetchDiffs func(owner, repo string, resourceID int) (string, error) + FetchIssues func(remotePath string, options types.IssueFilterOptions) ([]types.Issue, error) + FetchPullRequests func(remotePath, label string) ([]types.PullRequest, error) + FetchRepositories func() ([]types.Repository, error) + UpdateIssueState func(issueNumber int, state string) error + UpdatePullRequestState func(remotePath string, prNumber int, state string) error + func New(options ProviderOptions) Provider + type ProviderOptions struct + GitHubToken string + Path string + Type int + func SettingsToOptions(settings ProviderSettings) (ProviderOptions, error) + type ProviderSettings struct + Path string + Provider string + Token string