Documentation
¶
Index ¶
- func NewProvider(token, baseURL string) (vcs.VCSProvider, error)
- type Provider
- func (p *Provider) FetchMR(ctx context.Context, projectID string, mrIID int64) (*vcs.MergeRequest, error)
- func (p *Provider) FetchMRDiffs(ctx context.Context, projectID string, mrIID int64) ([]vcs.FileDiff, error)
- func (p *Provider) FetchMRRawDiff(ctx context.Context, projectID string, mrIID int64) (string, error)
- func (p *Provider) FormatSuggestionBlock(suggestion string) string
- func (p *Provider) Info() vcs.ProviderInfo
- func (p *Provider) ListMRDiscussions(ctx context.Context, projectID string, mrIID int64) ([]vcs.MRDiscussion, error)
- func (p *Provider) ListMRNotes(ctx context.Context, projectID string, mrIID int64) ([]vcs.MRNote, error)
- func (p *Provider) ListOpenMRs(ctx context.Context, projectID string) ([]*vcs.MergeRequest, error)
- func (p *Provider) PostInlineComment(ctx context.Context, projectID string, mrIID int64, refs vcs.DiffRefs, ...) error
- func (p *Provider) PostSummaryNote(ctx context.Context, projectID string, mrIID int64, body string) error
- func (p *Provider) ReplyToMRDiscussion(ctx context.Context, projectID string, mrIID int64, discussionID, body string) error
- func (p *Provider) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(token, baseURL string) (vcs.VCSProvider, error)
NewProvider creates a GitHub VCSProvider.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements vcs.VCSProvider for GitHub.
func (*Provider) FetchMRDiffs ¶
func (*Provider) FetchMRRawDiff ¶
func (*Provider) FormatSuggestionBlock ¶
FormatSuggestionBlock returns a GitHub-native suggestion code block.
func (*Provider) Info ¶
func (p *Provider) Info() vcs.ProviderInfo
func (*Provider) ListMRDiscussions ¶
func (*Provider) ListMRNotes ¶
func (*Provider) ListOpenMRs ¶
func (*Provider) PostInlineComment ¶
func (*Provider) PostSummaryNote ¶
func (*Provider) ReplyToMRDiscussion ¶
Click to show internal directories.
Click to hide internal directories.