[web-master] main: Handle transferred event
| From: | Nikita Popov | Date: | Mon, 06 Dec 2021 18:44:01 +0000 |
| Subject: | [web-master] main: Handle transferred event | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-29807@lists.php.net to get a copy of this message | ||
Author: Nikita Popov (nikic)
Date: 2021-12-06T19:44:35+01:00
Commit: https://github.com/php/web-master/commit/7751880a56f169ac2acff682375ab5fb65f7dc23
Raw diff: https://github.com/php/web-master/commit/7751880a56f169ac2acff682375ab5fb65f7dc23.diff
Handle transferred event
Changed paths:
M public/github-webhook.php
Diff:
diff --git a/public/github-webhook.php b/public/github-webhook.php
index bbdc0e8..7563b17 100644
--- a/public/github-webhook.php
+++ b/public/github-webhook.php
@@ -365,6 +365,10 @@ function handle_push_mail($payload) {
case 'reopened':
$message .= "\r\nReopened by $username.";
break;
+ case 'transferred':
+ $new_url = $payload->changes->new_issue->html_url;
+ $message .= "\r\nTransferred to $new_url by $username.";
+ break;
case 'assigned':
case 'unassigned':
case 'labeled':
@@ -376,6 +380,9 @@ function handle_push_mail($payload) {
case 'ready_for_review':
// Ignore these actions
break 2;
+ default:
+ $message .= "\r\nUnknown action: $action";
+ break;
}
send_mail($to, $subject, $message, MailAddress::noReply());