Move github hook creation into a signal handler