Changed mailtext
This commit is contained in:
parent
770d5b69de
commit
3cc1286d2d
14
www/pr.php
14
www/pr.php
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user