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) CommitFileToBranch(ctx context.Context, owner, repo, branch, path, message string, content []byte) error
- func (d *Driver) CommitFileToFork(ctx context.Context, forkOwner, forkRepo, branch, path, message string, ...) error
- func (d *Driver) CreateBranch(ctx context.Context, owner, repo, branch string) error
- func (d *Driver) CreateChangeProposal(ctx context.Context, owner, repo, title, body, head, base string) (*forge.ChangeProposal, error)
- func (d *Driver) CreateFork(ctx context.Context, owner, repo, forkName string) (string, error)
- func (d *Driver) CreateForkChangeProposal(ctx context.Context, ...) (*forge.ChangeProposal, error)
- func (d *Driver) CreateIssue(ctx context.Context, owner, repo, title, body string, labels ...string) (*forge.Issue, error)
- func (d *Driver) GetFileContent(ctx context.Context, owner, repo, path string) ([]byte, error)
- func (d *Driver) GetIssue(ctx context.Context, owner, repo string, number int) (*forge.Issue, error)
- func (d *Driver) SubmitPullRequestReview(ctx context.Context, owner, repo string, number int, event string) 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) CommitFileToBranch ¶
func (*Driver) CommitFileToFork ¶ added in v0.32.0
func (*Driver) CreateBranch ¶
func (*Driver) CreateChangeProposal ¶
func (*Driver) CreateFork ¶ added in v0.32.0
func (*Driver) CreateForkChangeProposal ¶ added in v0.32.0
func (*Driver) CreateIssue ¶
func (*Driver) GetFileContent ¶
Click to show internal directories.
Click to hide internal directories.