Documentation
¶
Index ¶
- type Config
- type Platform
- func (n Platform) AuthMethod(repo api.Repository) githttp.AuthMethod
- func (n Platform) CommitAndPush(repo api.Repository, base string, branch string, message string, dir string) error
- func (n Platform) CreateMergeRequest(repository api.Repository, sourceBranch string, title string, ...) error
- func (n Platform) CreateOrUpdateMergeRequest(repository api.Repository, sourceBranch string, title string, ...) error
- func (n Platform) CreateTag(repository api.Repository, tagName string, commitHash string, message string) error
- func (n Platform) EnvironmentVariables(repo api.Repository, environmentName string) ([]api.CIVariable, error)
- func (n Platform) Environments(repo api.Repository) ([]api.CIEnvironment, error)
- func (n Platform) FileContent(repository api.Repository, branch string, path string) (string, error)
- func (n Platform) FindRepository(path string) (api.Repository, error)
- func (n Platform) FindRepositoryById(id int64) (api.Repository, error)
- func (n Platform) Languages(repo api.Repository) (map[string]int, error)
- func (n Platform) Merge(repo api.Repository, mergeRequest api.MergeRequest, ...) error
- func (n Platform) MergeRequest(repo api.Repository, number int) (api.MergeRequest, error)
- func (n Platform) MergeRequestDiff(repo api.Repository, mergeRequest api.MergeRequest) (api.MergeRequestDiff, error)
- func (n Platform) MergeRequests(repo api.Repository, options api.MergeRequestSearchOptions) ([]api.MergeRequest, error)
- func (n Platform) Name() string
- func (n Platform) Releases(repository api.Repository, limit int) ([]api.Release, error)
- func (n Platform) Repositories(opts api.RepositoryListOpts) ([]api.Repository, error)
- func (n Platform) Slug() string
- func (n Platform) SubmitReview(repo api.Repository, mergeRequest api.MergeRequest, approved bool, ...) error
- func (n Platform) Tags(repository api.Repository, limit int) ([]api.Tag, error)
- func (n Platform) Variables(repo api.Repository) ([]api.CIVariable, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func NewPlatform ¶
NewPlatform creates a GitHub platform
func (Platform) AuthMethod ¶
func (n Platform) AuthMethod(repo api.Repository) githttp.AuthMethod
func (Platform) CommitAndPush ¶
func (Platform) CreateMergeRequest ¶
func (Platform) CreateOrUpdateMergeRequest ¶
func (Platform) EnvironmentVariables ¶
func (n Platform) EnvironmentVariables(repo api.Repository, environmentName string) ([]api.CIVariable, error)
func (Platform) Environments ¶
func (n Platform) Environments(repo api.Repository) ([]api.CIEnvironment, error)
func (Platform) FileContent ¶
func (Platform) FindRepository ¶
func (n Platform) FindRepository(path string) (api.Repository, error)
FindRepository looks up the installation that covers the repository and fetches it with an installation-scoped client
func (Platform) FindRepositoryById ¶
func (n Platform) FindRepositoryById(id int64) (api.Repository, error)
FindRepositoryById fetches a repository by id. The installation is resolved via the undocumented GET /repositories/{id}/installation endpoint, if that fails with 404 every installation is tried until one has access.
func (Platform) Merge ¶
func (n Platform) Merge(repo api.Repository, mergeRequest api.MergeRequest, mergeStrategy api.MergeStrategyOptions) error
func (Platform) MergeRequest ¶
func (n Platform) MergeRequest(repo api.Repository, number int) (api.MergeRequest, error)
func (Platform) MergeRequestDiff ¶
func (n Platform) MergeRequestDiff(repo api.Repository, mergeRequest api.MergeRequest) (api.MergeRequestDiff, error)
func (Platform) MergeRequests ¶
func (n Platform) MergeRequests(repo api.Repository, options api.MergeRequestSearchOptions) ([]api.MergeRequest, error)
func (Platform) Repositories ¶
func (n Platform) Repositories(opts api.RepositoryListOpts) ([]api.Repository, error)
func (Platform) SubmitReview ¶
func (n Platform) SubmitReview(repo api.Repository, mergeRequest api.MergeRequest, approved bool, message *string) error
func (Platform) Variables ¶
func (n Platform) Variables(repo api.Repository) ([]api.CIVariable, error)