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, _, _, title, body, forkOwner, forkRepo, head, base string) (*forge.ChangeProposal, error)
- func (d *Driver) CreateIssue(ctx context.Context, owner, repo, title, body string, labels ...string) (*forge.Issue, error)
- func (d *Driver) CreateRepo(ctx context.Context, org, name, description string) error
- func (d *Driver) DeleteBranch(ctx context.Context, owner, repo, branch string) error
- func (d *Driver) DeleteRepo(ctx context.Context, owner, repo string) error
- func (d *Driver) EnsureRepoPublic(ctx context.Context, owner, repo string) error
- func (d *Driver) GetBranchRef(ctx context.Context, owner, repo, branch string) (string, error)
- func (d *Driver) GetDefaultBranch(ctx context.Context, owner, repo string) (string, error)
- func (d *Driver) GetFileContent(ctx context.Context, owner, repo, path string) ([]byte, error)
- func (d *Driver) GetFileContentAtRef(ctx context.Context, owner, repo, path, ref string) ([]byte, error)
- func (d *Driver) GetIssue(ctx context.Context, owner, repo string, number int) (*forge.Issue, error)
- func (d *Driver) ListComments(ctx context.Context, owner, repo string, number int) ([]forge.IssueComment, error)
- func (d *Driver) ListIssueReactions(ctx context.Context, owner, repo string, number int) ([]forge.Reaction, error)
- func (d *Driver) ListOpenChangeProposals(ctx context.Context, owner, repo string) ([]forge.ChangeProposal, error)
- func (d *Driver) ListPullRequestReviews(ctx context.Context, owner, repo string, number int) ([]forge.PullRequestReview, 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 ¶
func (*Driver) CreateBranch ¶
func (*Driver) CreateChangeProposal ¶
func (*Driver) CreateFork ¶
func (*Driver) CreateForkChangeProposal ¶
func (*Driver) CreateIssue ¶
func (*Driver) CreateRepo ¶
func (*Driver) DeleteBranch ¶
func (*Driver) DeleteRepo ¶
func (*Driver) EnsureRepoPublic ¶
func (*Driver) GetBranchRef ¶
func (*Driver) GetDefaultBranch ¶
func (*Driver) GetFileContent ¶
func (*Driver) GetFileContentAtRef ¶ added in v0.45.0
func (*Driver) ListComments ¶
func (*Driver) ListIssueReactions ¶
func (*Driver) ListOpenChangeProposals ¶
func (*Driver) ListPullRequestReviews ¶ added in v0.45.0
Click to show internal directories.
Click to hide internal directories.