Documentation
¶
Index ¶
- type Provider
- func (p *Provider) AddCommentReaction(repoPath, reaction string, commentID int64) error
- func (p *Provider) AddLabelToIssue(issueNumber int, label string) error
- func (p *Provider) CreateDraftPR(path string, input types.PullRequestInput) error
- func (p *Provider) CreateIssue(issue types.Issue) (int, error)
- func (p *Provider) CreateIssueComment(remotePath string, issueNumber int, comment types.Comment) error
- func (p *Provider) CreatePRComment(remotePath string, prNumber int, comment types.Comment) error
- func (p *Provider) DeleteIssue(repoPath string, issueNumber int) error
- func (p *Provider) DeletePullRequest(repoPath string, prNumber int) error
- func (p *Provider) FetchComments(owner, repo string, prNumber int) ([]*types.Comment, error)
- func (p *Provider) FetchDiffs(_, _ string, resourceID int) (string, error)
- func (p *Provider) FetchIssues(remotePath string, options types.IssueFilterOptions) ([]types.Issue, error)
- func (p *Provider) FetchPullRequests(remotePath, label string) ([]types.PullRequest, error)
- func (p *Provider) FetchRepositories() ([]types.Repository, error)
- func (p *Provider) Save() error
- func (p *Provider) UpdateIssueState(issueNumber int, state string) error
- func (p *Provider) UpdatePullRequestState(remotePath string, prNumber int, state string) error
- type ProviderConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { Path string `json:"path"` Issues map[int]*types.Issue `json:"issues"` PullRequests map[int]*types.PullRequest `json:"pullRequests"` IssueCounter int `json:"issueCounter"` }
func NewProvider ¶
func (*Provider) AddCommentReaction ¶
func (*Provider) AddLabelToIssue ¶
func (*Provider) CreateDraftPR ¶
func (p *Provider) CreateDraftPR(path string, input types.PullRequestInput) error
func (*Provider) CreateIssueComment ¶
func (*Provider) CreatePRComment ¶
func (*Provider) DeleteIssue ¶
func (*Provider) DeletePullRequest ¶
func (*Provider) FetchComments ¶
func (*Provider) FetchDiffs ¶
func (*Provider) FetchIssues ¶
func (*Provider) FetchPullRequests ¶
func (p *Provider) FetchPullRequests(remotePath, label string) ([]types.PullRequest, error)
func (*Provider) FetchRepositories ¶
func (p *Provider) FetchRepositories() ([]types.Repository, error)
func (*Provider) UpdateIssueState ¶
type ProviderConfig ¶
func (*ProviderConfig) Save ¶
func (p *ProviderConfig) Save() error
Click to show internal directories.
Click to hide internal directories.