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:
parent
bfda1b35d0
commit
9c2e0a759a
1 changed files with 24 additions and 0 deletions
|
@ -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 << " ";
|
||||
out << unquote(label["name"]);
|
||||
out << " ";
|
||||
out << "</b>";
|
||||
|
||||
out << "</font>";
|
||||
out << "</li>";
|
||||
out << "</ul>";
|
||||
}
|
||||
|
||||
return out;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue