Github Webhook Resource
This resource creates and deletes Github webhooks which point to resources in a Concourse pipeline. The github-webhook-resource can only manipulate webhooks which point to other resources in its containing pipeline.
Resource Type Configuration
resource_types: - name: github-webhook-resource type: docker-image source: repository: homedepottech/github-webhook-resource tag: 'latest'
resources: - name: github-webhook type: github-webhook-resource source: github_api: https://github.example.com/api github_token: ((github-token))
github_api: Required. The Github API URL for your repo.
github_token: Required. A Github token with the
admin:repo_hookscope. Additionally, the token's account must be an administrator of your repo to manage the repo's webhooks.
out: Manipulate a Github webhook
Create or delete a webhook using the configured parameters.
- put: create-webhook resource: github-webhook params: org: github-org-name repo: github-repo-name resource_name: your-resource-name webhook_token: your-token operation: create events: [push, pull_request]
org: Required. Your github organization.
repo: Required. Your github repository.
resource_name: Required. Name of the resource to be associated with your webhook.
webhook_token: Required. Arbitrary string to identify your webhook. Must match the
webhook_tokenproperty of the resource your webhook points to.
createto create a new webhook. Ignores pre-existing webhooks.
deleteto delete an existing webhook. Outputs current timestamp on non-existing webhooks.
events: Optional. An array of events which will trigger your webhook. Default: