0

I am looking for an option to trigger a job automatically whenever a feature branch is deleted in git.

For e.g I have two feature branches and if one is deleted, should trigger a Job and Job should know which feature branch is deleted.

Reference - https://www.concoursetutorial.com/basics/triggers.html

As per the above URL, job gets triggered whenever there is a new commit to the branch (master/feature). So when we merge our feature branch using 'Squash and Merge' and delete the feature branch, it will be a new commit to Dev/Master branch and job will get triggered, but how we would know which feature branch is deleted?

Thanks in Advance!

Coder
  • 1
  • 1

0 Answers0