Overdrivr / micro-ci

Continuous Integration for embedded platforms
0 stars 0 forks source link

Support webhook ping payloads #71

Closed Overdrivr closed 8 years ago

Overdrivr commented 8 years ago

Ping payloads do not have a after value (containing a commit hash) unlike push payloads. Currently the server is not able to detect that the payload is a ping, looks for the commit in the database with hash == after, and since it is undefined, returns the entire database (fullmatch) instead of returning nothing.

Instead, it should detect the payload as ping, and if the repository exists return 204, if not 404 otherwise.