Fixed assignees names for issues

This commit is contained in:
Tristan B. Velloza Kildaire 2022-11-06 13:27:57 +02:00
parent 22f921b668
commit a6262c9559
1 changed files with 8 additions and 2 deletions

View File

@ -59,8 +59,14 @@ void issueHandler(HTTPServerRequest request, HTTPServerResponse response)
JSONValue[] assignees = issueBlock["assignees"].array();
ircBot.channelMessage("Opened issue '"~issueTitle~"' by "~to!(string)(assignees), "#tlang");
string[] assigneeNames;
foreach(JSONValue assignee; assignees)
{
assigneeNames~=assignee["username"].str();
}
ircBot.channelMessage("Opened issue '"~issueTitle~"' by "~to!(string)(assigneeNames), "#tlang");
}