mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
Update github_webhook_processor.php
This commit is contained in:
@@ -545,13 +545,8 @@ function auto_update($payload){
|
||||
get_diff($payload);
|
||||
$content = file_get_contents('https://raw.githubusercontent.com/' . $repoOwnerAndName . '/' . $tracked_branch . '/'. $path_to_script);
|
||||
$content_diff = "### Diff not available. :slightly_frowning_face:";
|
||||
<<<<<<< HEAD
|
||||
if($github_diff && preg_match('/(diff --git a\/' . preg_quote($path_to_script, '/') . '.+?)(?:^diff)?/sm', $github_diff, $matches)) {
|
||||
$script_diff = matches[1];
|
||||
=======
|
||||
if($github_diff && preg_match('/(diff --git a\/' . preg_quote($path_to_script, '/') . '.+?)(?:\Rdiff|$)/s', $github_diff, $matches)) {
|
||||
$script_diff = $matches[1];
|
||||
>>>>>>> 1a6bf6b... Merge pull request #34323 from JJRcop/webhook_mistakes
|
||||
if($script_diff) {
|
||||
$content_diff = "``" . "`DIFF\n" . $script_diff ."\n``" . "`";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user