github/github-services — pull request #458 by theefer (2012-11-27 12:51:36+00:00)
Title: Don't make TeamCity build deleted branches

Currently, deleting a branch on Github triggers a new build in TeamCity (7.1, using the branch wildcarding). That doesn't look right.

An easy fix (see patch) is to quit the push handler if the payload represents a deleted branch.

Alternatively, I don't know if a better solution would be to try and delete the corresponding build type in TeamCity. The current service code seems to use the very old form-based TC4 interface, rather than the newer REST API, so I don't know if deleting builds is possible. Also, we would probably want to be compatible both with the old one-build-per-branch structure and the new TC7 multi-branch build structure.

Feedback welcome!