Tweak some things about the webhook processor.

These are already live, (kinda) but i'm putting them here mainly so we can test the auto-update again
This commit is contained in:
Kyle Spier-Swenson
2017-09-11 19:13:33 -07:00
committed by GitHub
parent 07c1c4aeed
commit ca7ca712e8

View File

@@ -15,10 +15,8 @@
*/
//CONFIG START (all defaults are random examples, do change them)
//Use single quotes for config options that are strings.
//CONFIGS ARE IN SECRET.PHP, THESE ARE JUST DEFAULTS!
//These are all default settings that are described in secret.php
$hookSecret = '08ajh0qj93209qj90jfq932j32r';
$apiKey = '209ab8d879c0f987d06a09b9d879c0f987d06a09b9d8787d0a089c';
$repoOwnerAndName = "tgstation/tgstation";
@@ -43,6 +41,7 @@ set_error_handler(function($severity, $message, $file, $line) {
set_exception_handler(function($e) {
header('HTTP/1.1 500 Internal Server Error');
echo "Error on line {$e->getLine()}: " . htmlSpecialChars($e->getMessage());
file_put_contents('htwebhookerror.log', "Error on line {$e->getLine()}: " . $e->getMessage(), FILE_APPEND);
die();
});
$rawPost = NULL;