Versions in this module Expand all Collapse all v0 v0.2.0 Nov 24, 2023 v0.1.0 Oct 27, 2022 Changes in this version + func IsNotFound(err error) bool + type GitClient interface + CreateBranch func(ctx context.Context, repo, branch, sha string) error + CreatePullRequest func(ctx context.Context, repo string, inp *scm.PullRequestInput) (*scm.PullRequest, error) + GetBranchHead func(ctx context.Context, repo, branch string) (string, error) + GetFile func(ctx context.Context, repo, ref, path string) (*scm.Content, error) + UpdateFile func(ctx context.Context, repo, branch, path, message, previousSHA string, ...) error + type SCMClient struct + func New(c *scm.Client) *SCMClient + func (c *SCMClient) CreateBranch(ctx context.Context, repo, branch, sha string) error + func (c *SCMClient) CreatePullRequest(ctx context.Context, repo string, inp *scm.PullRequestInput) (*scm.PullRequest, error) + func (c *SCMClient) GetBranchHead(ctx context.Context, repo, branch string) (string, error) + func (c *SCMClient) GetFile(ctx context.Context, repo, ref, path string) (*scm.Content, error) + func (c *SCMClient) UpdateFile(ctx context.Context, repo, branch, path, message, previousSHA string, ...) error