Documentation
¶
Index ¶
- Variables
- type BranchClient
- func (c *BranchClient) CreateFile(ctx context.Context, commitMsg, path, content string) error
- func (c *BranchClient) DeleteBranch(ctx context.Context) error
- func (c *BranchClient) PullRequest(ctx context.Context, title, body string) (*github.PullRequest, error)
- func (c *BranchClient) UpdateFile(ctx context.Context, commitMsg, path, sha, content string) error
- func (c *BranchClient) WaitAndMerge(ctx context.Context, pr *github.PullRequest) error
- type Client
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFileNotFound = errors.New("file not found")
Functions ¶
This section is empty.
Types ¶
type BranchClient ¶
type BranchClient struct {
// contains filtered or unexported fields
}
func (*BranchClient) CreateFile ¶
func (c *BranchClient) CreateFile(ctx context.Context, commitMsg, path, content string) error
func (*BranchClient) DeleteBranch ¶
func (c *BranchClient) DeleteBranch(ctx context.Context) error
func (*BranchClient) PullRequest ¶
func (c *BranchClient) PullRequest(ctx context.Context, title, body string) (*github.PullRequest, error)
func (*BranchClient) UpdateFile ¶
func (c *BranchClient) UpdateFile(ctx context.Context, commitMsg, path, sha, content string) error
func (*BranchClient) WaitAndMerge ¶
func (c *BranchClient) WaitAndMerge(ctx context.Context, pr *github.PullRequest) error
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetContent ¶
Click to show internal directories.
Click to hide internal directories.