How to trigger job on branch deletion?


How can I trigger a job to be run when a branch gets deleted?


There is no way to do this from within CircleCI. You could set up a lambda job or something though to do this via the API.

So something like this might work:

  1. Send Webhook from GitHub to Lambda when branch gets deleted
  2. Trigger build via the API from Lambda


Thanks for your answer. Is this planned? F.e. Gitlab CI can do with a so-called stop job:


This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.