0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-30 02:32:43 +01:00

modules/web_hook: Add labels to issue comments.

This commit is contained in:
Jason Volk 2020-05-07 02:33:29 -07:00
parent 8a94a290be
commit 563da4b938

View file

@ -1014,6 +1014,21 @@ github_handle__issue_comment(std::ostream &out,
;
}
for(const json::object &label : json::array(issue["labels"]))
out
<< "<font color=\"#FFFFFF\""
<< "data-mx-bg-color=\"#"
<< json::string(label["color"])
<< "\">"
<< "<b>"
<< "&nbsp;"
<< json::string(label["name"])
<< "&nbsp;"
<< "</b>"
<< "</font>"
<< "&nbsp;"
;
return true;
}