0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-19 16:30:52 +01:00

modules/webhook: Handle labels action unlabeled.

This commit is contained in:
Jason Volk 2019-03-27 14:33:27 -07:00
parent bfda1b35d0
commit 9c2e0a759a

View file

@ -600,6 +600,30 @@ github_handle__issues(std::ostream &out,
out << "</ul>";
}
else if(action == "unlabeled")
{
const json::object label
{
content["label"]
};
out << "<ul>";
out << "<li>removed: ";
out << "<font color=\"#FFFFFF\""
<< "data-mx-bg-color=\"#"
<< unquote(label["color"])
<< "\">";
out << "<b>";
out << "&nbsp;";
out << unquote(label["name"]);
out << "&nbsp;";
out << "</b>";
out << "</font>";
out << "</li>";
out << "</ul>";
}
return out;
}