Documentation
¶
Overview ¶
Package github implements GitHub Actions gate to allow Webhooks to trigger Applications events
Index ¶
Constants ¶
View Source
const DefaultUpdateHooksInterval = time.Hour
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Webhook Push config
BindAddress string `json:"bind_address"` // Where to listen for incoming requests
// Webhook Pull config
APIToken string `json:"api_token"` // GitHub API personal fine-grained token
APIAppID int64 `json:"api_app_id"` // GitHub App ID
APIAppInstallID int64 `json:"api_app_install_id"` // GitHub App Installation ID
APIAppKey string `json:"api_app_key"` // GitHub App private key in pem format
APIPerPage int `json:"api_per_page"` // In case you want to save rate limit on lists, default: 100
// Interval between hooks updates (set to -1 if don't want it to run periodically), default: 1h
APIUpdateHooksInterval util.Duration `json:"api_update_hooks_interval"`
// Interval between cleanups of runners (set to -1 if don't want to run it periodically), default: 1h
APICleanupRunnersInterval util.Duration `json:"api_cleanup_runners_interval"`
// Minimal interval in between deliveries checks, default: 30s
APIMinCheckInterval util.Duration `json:"api_min_check_interval"`
// Common configs
// Filter contains pattern of the repos full name "org/repo" (accepts path.Match patterns)
// and configuration. You have to set at least one filter ('*/*' for example)
Filters map[string]Filter `json:"filters"`
DeliveryValidInterval util.Duration `json:"delivery_valid_interval"` // For how long to see the delivery as valid since it's delivery time, default: 30m
DefaultJobMaxLifetime util.Duration `json:"default_job_max_lifetime"` // Used when job is stuck not completed and no lifetime is set for the label, default: 12h
// If you need to use this gate with GitHub enterprise installation - set those configs
EnterpriseBaseURL string `json:"enterprise_base_url"` // Format: http(s)://[hostname]/api/v3/
EnterpriseUploadURL string `json:"enterprise_upload_url"` // Format: http(s)://[hostname]/api/uploads/
}
Config - node driver configuration
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver implements drivers.ResourceDriver interface
func (*Driver) GetRPCServices ¶ added in v0.9.0
func (*Driver) GetRPCServices() []gate.RPCService
GetRPCServices returns RPC services this gate driver wants to register GitHub gate doesn't expose any RPC services
Click to show internal directories.
Click to hide internal directories.