0

Does anyone know if you can trigger a webhook based on the github action of creating a new branch called

Release-xxxx where XXXX can be anything? I only want to initiate this webhook on that new branch name.

Jimmy Chen
  • 207
  • 5
  • 12

1 Answers1

0

In general, GitHub webhooks cover a single large category of activities that you are then responsible for filtering. In your case, you can install a webhook to be notified when a new branch or tag is created and then perform the filtering yourself.

GitHub doesn't perform the filtering for you because filtering is expensive and there are a lot of operations to notify about. This is no different than reading an events stream API and having to select only the events that you're interested in.

bk2204
  • 64,793
  • 6
  • 84
  • 100
  • Ya. So I think I'll just make the call and have the lambda function filter it. I think it's easier. Thank you. – Jimmy Chen Nov 07 '20 at 21:02