0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

modules/webhook: Tweak github push handler formatting.

This commit is contained in:
Jason Volk 2019-01-25 17:27:40 -08:00
parent 05f39b03d6
commit 938d8b09aa

View file

@ -298,11 +298,17 @@ github_handle__push(std::ostream &out,
<< "</a>";
const json::object author(commit["author"]);
out << " " << unquote(author["name"]);
out << " <b>"
<< unquote(author["name"])
<< "</b>"
;
const json::object committer(commit["committer"]);
if(committer["email"] != author["email"])
out << " via " << unquote(committer["name"]);
out << " via <b>"
<< unquote(committer["name"])
<< "</b>"
;
const auto message(unquote(commit["message"]));
const auto summary
@ -310,9 +316,9 @@ github_handle__push(std::ostream &out,
split(message, "\\n").first
};
out << " <u>"
out << " "
<< summary
<< "</u>";
;
out << "<br />";
}