Documentation
¶
Index ¶
Constants ¶
View Source
const ( LOCAL = 0 GITHUB = 1 )
Variables ¶
This section is empty.
Functions ¶
func ProviderTypeToString ¶
Types ¶
type Provider ¶
type Provider interface { CreateDraftPR(path string, input types.PullRequestInput) error CreateIssue(issue types.Issue) (int, error) CreateIssueComment(path string, issueNumber int, comment types.Comment) error CreatePRComment(path string, prNumber int, comment types.Comment) error DeleteIssue(repoPath string, issueNumber int) error DeletePullRequest(repoPath string, prNumber int) error UpdateIssueState(issueNumber int, state string) error AddLabelToIssue(issueNumber int, label string) error FetchRepositories() ([]types.Repository, error) FetchIssues(remotePath string, options types.IssueFilterOptions) ([]types.Issue, error) FetchPullRequests(remotePath, label string) ([]types.PullRequest, error) UpdatePullRequestState(remotePath string, prNumber int, state string) error FetchDiffs(owner, repo string, resourceID int) (string, error) FetchComments(owner, repo string, prNumber int) ([]*types.Comment, error) AddCommentReaction(repoPath, reaction string, commentID int64) error }
func New ¶
func New(options ProviderOptions) Provider
type ProviderOptions ¶
func SettingsToOptions ¶
func SettingsToOptions(settings ProviderSettings) (ProviderOptions, error)
type ProviderSettings ¶
Click to show internal directories.
Click to hide internal directories.