Documentation ¶
Index ¶
- Constants
- func Health() http.Handler
- func Metrics(r metrics.Registry, config prometheus.Config) http.Handler
- type Base
- func (b *Base) FetchConfig(ctx context.Context, client *github.Client, owner, repo, ref string) (*bulldozer.Config, error)
- func (b *Base) FetchConfigForPR(ctx context.Context, client *github.Client, pr *github.PullRequest) (*bulldozer.Config, error)
- func (b *Base) ProcessPullRequest(ctx context.Context, pullCtx pull.Context, client *github.Client, ...) error
- func (b *Base) UpdatePullRequest(ctx context.Context, pullCtx pull.Context, client *github.Client, ...) (bool, error)
- type CheckRun
- type ConfigFetcher
- type FetchedConfig
- type HealthCheck
- type IssueComment
- type Options
- type PullRequest
- type PullRequestReview
- type Push
- type Status
Constants ¶
View Source
const ( DefaultConfigurationPath = ".bulldozer.yml" DefaultAppName = "bulldozer" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Base ¶
type Base struct { githubapp.ClientCreator ConfigFetcher *ConfigFetcher PushRestrictionUserToken string DisableUpdateFeature bool }
func (*Base) FetchConfig ¶ added in v1.13.0
func (*Base) FetchConfigForPR ¶ added in v1.15.0
func (*Base) ProcessPullRequest ¶
type ConfigFetcher ¶ added in v1.14.0
type ConfigFetcher struct {
// contains filtered or unexported fields
}
func NewConfigFetcher ¶ added in v1.14.0
func NewConfigFetcher(loader *appconfig.Loader, defaultConfig *bulldozer.Config) *ConfigFetcher
func (*ConfigFetcher) Config ¶ added in v1.15.0
func (cf *ConfigFetcher) Config(ctx context.Context, client *github.Client, owner, repo, ref string) FetchedConfig
type FetchedConfig ¶ added in v1.14.0
type HealthCheck ¶
type IssueComment ¶
type IssueComment struct {
Base
}
func (*IssueComment) Handles ¶
func (h *IssueComment) Handles() []string
type Options ¶ added in v1.17.0
type Options struct { AppName string `yaml:"app_name"` PushRestrictionUserToken string `yaml:"push_restriction_user_token"` ConfigurationPath string `yaml:"configuration_path"` DefaultRepositoryConfig *bulldozer.Config `yaml:"default_repository_config"` ConfigurationV0Paths []string `yaml:"configuration_v0_paths"` DisableUpdateFeature bool `yaml:"disable_update_feature"` }
func (*Options) SetValuesFromEnv ¶ added in v1.17.0
type PullRequest ¶
type PullRequest struct {
Base
}
func (*PullRequest) Handles ¶
func (h *PullRequest) Handles() []string
type PullRequestReview ¶
type PullRequestReview struct {
Base
}
func (*PullRequestReview) Handles ¶
func (h *PullRequestReview) Handles() []string
Click to show internal directories.
Click to hide internal directories.