Reworked the github hook to receive better calls