0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-03-13 13:00:33 +01:00

modules/web_hook: Tweak spacing on pull request.

This commit is contained in:
Jason Volk 2020-03-26 19:43:13 -07:00
parent 27324d42bc
commit 7a0da02bf6

View file

@ -452,6 +452,8 @@ github_handle__pull_request(std::ostream &out,
<< ">" << ">"
<< json::string(pr["title"]) << json::string(pr["title"])
<< "</a>" << "</a>"
<< "&nbsp;"
<< ' '
; ;
const json::object head const json::object head
@ -514,10 +516,11 @@ github_handle__pull_request(std::ostream &out,
<< "<pre><code>" << "<pre><code>"
<< body << body
<< "</code></pre>" << "</code></pre>"
<< " &nbsp; "
; ;
if(pr.has("commits")) if(pr.has("commits"))
out << " " out << " "
<< "<b>" << "<b>"
<< pr["commits"] << pr["commits"]
<< ' ' << ' '
@ -530,7 +533,7 @@ github_handle__pull_request(std::ostream &out,
; ;
if(pr.has("comments")) if(pr.has("comments"))
out << " " out << " &nbsp;"
<< "<b>" << "<b>"
<< pr["comments"] << pr["comments"]
<< ' ' << ' '
@ -543,7 +546,7 @@ github_handle__pull_request(std::ostream &out,
; ;
if(pr.has("changed_files")) if(pr.has("changed_files"))
out << " " out << " &nbsp;"
<< "<b>" << "<b>"
<< pr["changed_files"] << pr["changed_files"]
<< ' ' << ' '
@ -557,7 +560,7 @@ github_handle__pull_request(std::ostream &out,
; ;
if(pr.has("additions")) if(pr.has("additions"))
out << " " out << " &nbsp;"
<< "<b>" << "<b>"
<< "<font color=\"#33CC33\">" << "<font color=\"#33CC33\">"
<< "++" << "++"
@ -567,7 +570,7 @@ github_handle__pull_request(std::ostream &out,
; ;
if(pr.has("deletions")) if(pr.has("deletions"))
out << " " out << " "
<< "<b>" << "<b>"
<< "<font color=\"#CC0000\">" << "<font color=\"#CC0000\">"
<< "--" << "--"