From 79002cea71d9da911e4fb3a19ba5121851063245 Mon Sep 17 00:00:00 2001 From: Inga Lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Tue, 10 Dec 2013 14:22:25 +0400 Subject: [PATCH] Limited commit status description to 140 chars (per GitHub API specs) --- BuildServer/lib/builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BuildServer/lib/builder.js b/BuildServer/lib/builder.js index 8be31c0..4ee73d2 100644 --- a/BuildServer/lib/builder.js +++ b/BuildServer/lib/builder.js @@ -15,7 +15,7 @@ var notifyStatus = function (options, callback) { json: { state: options.state, target_url: "https://mbs.pos/status/" + options.owner + "/" + options.reponame + "/" + options.hash, - description: options.description + description: (options.description || "").substr(0, 140) } }, function (err, response, body) { if (err) {