Documentation ¶
Index ¶
- func IsExecution(err error) bool
- func IsInstallationNotFound(err error) bool
- func IsInvalidConfig(err error) bool
- func IsNotFound(err error) bool
- type Client
- func (c *Client) AddRepoToRenovatePermissions(ctx context.Context, org string, repo *github.Repository) error
- func (c *Client) GetFile(ctx context.Context, owner, repo, path, ref string) (RepositoryFile, error)
- func (c *Client) GetRepository(ctx context.Context, owner, repo string) (*github.Repository, error)
- func (c *Client) ListRepositories(ctx context.Context, owner string) ([]Repository, error)
- func (c *Client) RemoveRepoFromRenovatePermissions(ctx context.Context, org string, repo *github.Repository) error
- func (c *Client) RemoveRepositoryBranchProtection(ctx context.Context, repository *github.Repository) (err error)
- func (c *Client) SetRepositoryBranchProtection(ctx context.Context, repository *github.Repository, checkNames []string, ...) (err error)
- func (c *Client) SetRepositoryDefaultBranch(ctx context.Context, repository *github.Repository, newDefaultBranch string) (err error)
- func (c *Client) SetRepositoryPermissions(ctx context.Context, repository *github.Repository, ...) error
- func (c *Client) SetRepositorySettings(ctx context.Context, repository, repositorySettings *github.Repository) (*github.Repository, error)
- type Config
- type Repository
- type RepositoryFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInstallationNotFound ¶
IsInstallationNotFound asserts installationNotFoundError.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddRepoToRenovatePermissions ¶
func (c *Client) AddRepoToRenovatePermissions(ctx context.Context, org string, repo *github.Repository) error
Add repository to the Renovate installation. Corresponds to https://docs.github.com/en/rest/apps/installations?apiVersion=2022-11-28#add-a-repository-to-an-app-installation
func (*Client) GetRepository ¶
func (*Client) ListRepositories ¶
func (*Client) RemoveRepoFromRenovatePermissions ¶
func (c *Client) RemoveRepoFromRenovatePermissions(ctx context.Context, org string, repo *github.Repository) error
Remove repository from the Renovate installation. Corresponds to https://docs.github.com/en/rest/apps/installations?apiVersion=2022-11-28#remove-a-repository-from-an-app-installation
func (*Client) RemoveRepositoryBranchProtection ¶
func (*Client) SetRepositoryBranchProtection ¶
func (*Client) SetRepositoryDefaultBranch ¶
func (*Client) SetRepositoryPermissions ¶
func (*Client) SetRepositorySettings ¶
func (c *Client) SetRepositorySettings(ctx context.Context, repository, repositorySettings *github.Repository) (*github.Repository, error)
type Repository ¶
type RepositoryFile ¶
Click to show internal directories.
Click to hide internal directories.