homedepot / github-webhook-resource

Concourse resource for remotely managing GitHub webhooks
Apache License 2.0
12 stars 20 forks source link

Configure webhook for another pipeline #36

Closed jakul closed 5 months ago

jakul commented 1 year ago

Change Request

Tell us about your environment

Describe your change request

The problem you want to solve: I do not want my pipeline to check the Github resource each time it is run. I run a multi branch workflow and have a "parent" pipeline that is responsible for creating and managing the child pipelines, and for cleaning up the third party resources that those child pipelines use (e.g. terraform resources). I would like the parent pipeline to also manage the Github webhooks.

Your take on the correct solution to problem: Add an optional arguments for pipeline and instance_vars to the github webhook resource, which would then allow me to set the webhook url correctly for the child pipelines. We may also need a vars argument to be able to correctly construct the URL to the pipeline instance (as described by the Concourse docs for resource.webhook_token).

Do you plan to submit a pull request to implement this change? No

billimek commented 5 months ago

Closed by #43