From eab088cc16188c4f354a71650dbb32f03b75ea42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= Date: Fri, 31 Mar 2017 13:06:53 +0300 Subject: [PATCH] Web: Omit "ci skip" tags from commit messages in the build commits list [ci skip] --- webapi/1/builds.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapi/1/builds.php b/webapi/1/builds.php index 762c935cb7..3ab1d16346 100644 --- a/webapi/1/builds.php +++ b/webapi/1/builds.php @@ -221,7 +221,8 @@ function generate_build_page($number) $date = strftime('%b %d', mktime(0, 0, 0, $parsed['month'], $parsed['day'])); //htmlspecialchars(substr($commit->date, 0, 10)); $subject = htmlspecialchars($commit->subject); $author = htmlentities($commit->author); - $msg = basic_markdown(htmlentities($commit->message)); + $msg = trim(str_replace("[ci skip]", "", $commit->message)); + $msg = basic_markdown(htmlentities($msg)); cache_echo("
  • $others$date " ."$subject " //."by $author"