Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePostSubmit ¶ added in v0.2.0
func GeneratePostSubmit(push *git.Push, repo *git.Repository, sender *git.User, config *cicdv1.IntegrationConfig) (*cicdv1.IntegrationJob, error)
GeneratePostSubmit generates IntegrationJob for push event
func GeneratePreSubmit ¶ added in v0.2.0
func GeneratePreSubmit(pr *git.PullRequest, repo *git.Repository, sender *git.User, config *cicdv1.IntegrationConfig) (*cicdv1.IntegrationJob, error)
GeneratePreSubmit generates IntegrationJob for pull request event
Types ¶
type Dispatcher ¶
Dispatcher dispatches IntegrationJob when webhook is called A kind of 'plugin' for webhook handler
func (Dispatcher) Handle ¶
func (d Dispatcher) Handle(webhook *git.Webhook, config *cicdv1.IntegrationConfig) error
Handle handles pull-request and push events
Click to show internal directories.
Click to hide internal directories.