From 8a769abe05844e2c5aeb6cabc259f557c466870a Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 10 Mar 2020 08:45:05 -0700 Subject: [PATCH] modules/web_hook: Improve riohtml formatting of PR's. --- modules/web_hook.cc | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/modules/web_hook.cc b/modules/web_hook.cc index 0fd975125..0a0491183 100644 --- a/modules/web_hook.cc +++ b/modules/web_hook.cc @@ -530,7 +530,7 @@ github_handle__pull_request(std::ostream &out, ; if(pr.has("comments")) - out << " / " + out << " " << "" << pr["comments"] << ' ' @@ -543,7 +543,7 @@ github_handle__pull_request(std::ostream &out, ; if(pr.has("changed_files")) - out << " / " + out << " " << "" << pr["changed_files"] << ' ' @@ -557,7 +557,7 @@ github_handle__pull_request(std::ostream &out, ; if(pr.has("additions")) - out << " / " + out << " " << "" << "" << "++" @@ -567,7 +567,7 @@ github_handle__pull_request(std::ostream &out, ; if(pr.has("deletions")) - out << " / " + out << " " << "" << "" << "--" @@ -580,20 +580,10 @@ github_handle__pull_request(std::ostream &out, { default: case "null"_: - out << " / " - << "" - << "" - << " " - << "CHECKING" - << " " - << "" - << "" - ; break; case "true"_: - out << " / " + out << " " << "" << "" @@ -606,7 +596,7 @@ github_handle__pull_request(std::ostream &out, break; case "false"_: - out << " / " + out << " " << "" << ""