Version: 0.3
References
Webhook#
Webhook defines repositories to handle and resources to apply.
| Name | Type | Description | Default | 
|---|---|---|---|
spec.repositories | array | Repositories to handle. | |
spec.repositories[].type | string | Repository type. Possible values: github | Required | 
spec.repositories[].name | string | Full name of repository | Required | 
spec.repositories[].branches.include | []string | Included branches. | |
spec.repositories[].branches.exclude | []string | Excluded branches. | |
spec.resourceName | string | Template of resource name. This value is used to generate name of resource sets. | {{ .Webhook.Name }}-{{ .Spec.Number }} | 
resources | array | Resources to apply. | 
Filter by Branch#
You can filter pull requests by setting spec.repositories[].branches. The value can be a string or a regular expression. For example:
Template#
You can use template strings in spec.resourceName or spec.resources.
Webhook variables:
.Spec: ResourceSetSpec.Webhook: Webhook.Repo: Repository
ResourceSet variables:
.: ResourceSet
See more:
- Syntax: text/template
 - Available functions: sprig
 
ResourceSet#
ResourceSet defines resources to apply and some information about the pull request and the commit. It's usually created by the webhook.
| Name | Type | Description | 
|---|---|---|
spec.base.ref | string | Base branch name. | 
spec.base.sha | string | Base branch revision. | 
spec.head.ref | string | Head branch name. | 
spec.head.sha | string | Head branch revision. | 
spec.number | int | Pull requset number. | 
spec.resources | array | Resources to apply. |