Changed mailtext

This commit is contained in:
Bandie 2021-01-13 20:25:34 +01:00
parent 770d5b69de
commit 3cc1286d2d
Signed by: Bandie
GPG Key ID: 843D7FA93BA46312

View File

@ -45,16 +45,24 @@ if($decoded['secret'] != $secret_key['pr']) {
file_put_contents("log.txt", print_r($decoded, true)); file_put_contents("log.txt", print_r($decoded, true));
$subject = "Pull request: " . $decoded['pull_request']['title'] . " by " . $decoded['pull_request']['user']['login']; $subject = $decoded['repository']['full_name']
. " - PR #"
. $decoded['pull_request']['number']
. " ("
. $decoded['pull_request']['title']
. ") by "
. $decoded['pull_request']['user']['login'];
$message = $decoded['sender']['login'] $message = $decoded['sender']['login']
. " has " . . " has " .
($decoded['pull_request']['merged'] ? "merged" : $decoded['action']) ($decoded['pull_request']['merged'] ? "merged" : $decoded['action'])
. " pull request #" . . " pull request #" .
$decoded['pull_request']['number'] $decoded['pull_request']['number']
. " for " . . " (" . $decoded['pull_request']['title'] . ") for " .
$decoded['repository']['full_name'] $decoded['repository']['full_name']
. ".\n" . . ".\n" .
$decoded['pull_request']['html_url']; $decoded['pull_request']['html_url']
. "\n\n\nSent to you by https://git.chaospott.de/Chaospott/gitea_webhooks";
foreach($recipients['pr'] as $recp) { foreach($recipients['pr'] as $recp) {