Documentation
¶
Index ¶
- func New(client forge.Client) scm.Driver
- func ParseRepo(fullName string) (owner, repo string, err error)
- type Driver
- func (d *Driver) AddComment(ctx context.Context, owner, repo string, number int, body string) (*forge.IssueComment, error)
- func (d *Driver) AddIssueLabels(ctx context.Context, owner, repo string, number int, labels ...string) error
- func (d *Driver) CloseIssue(ctx context.Context, owner, repo string, number int) error
- func (d *Driver) CommitFile(ctx context.Context, owner, repo, path, message string, content []byte) error
- func (d *Driver) CreateIssue(ctx context.Context, owner, repo, title, body string, labels ...string) (*forge.Issue, error)
- func (d *Driver) GetIssue(ctx context.Context, owner, repo string, number int) (*forge.Issue, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
Driver implements scm.Driver using forge.Client.
func (*Driver) AddComment ¶
func (*Driver) AddIssueLabels ¶
func (*Driver) CloseIssue ¶
func (*Driver) CommitFile ¶
func (*Driver) CreateIssue ¶
Click to show internal directories.
Click to hide internal directories.