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:
parent
8a94a290be
commit
563da4b938
1 changed files with 15 additions and 0 deletions
|
@ -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>"
|
||||
<< " "
|
||||
<< json::string(label["name"])
|
||||
<< " "
|
||||
<< "</b>"
|
||||
<< "</font>"
|
||||
<< " "
|
||||
;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue