uselagoon / remote-controller

A group of controllers for handling Lagoon builds and tasks in Kubernetes or Openshift
5 stars 1 forks source link

Fix PR environment deletions #35

Closed shreddedbacon closed 3 years ago

shreddedbacon commented 3 years ago

Lagoon sends a different payload for pullrequest deletions which contain a field called branchName not branch like others.

This PR fixes it so that if the Type is pullrequest it will use the value of branchName to handle deletions.