Limited commit status description to 140 chars (per GitHub API specs)

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 11 years ago
parent a11275f9cd
commit 79002cea71
  1. 2
      BuildServer/lib/builder.js

@ -15,7 +15,7 @@ var notifyStatus = function (options, callback) {
json: { json: {
state: options.state, state: options.state,
target_url: "https://mbs.pos/status/" + options.owner + "/" + options.reponame + "/" + options.hash, 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) { }, function (err, response, body) {
if (err) { if (err) {

Loading…
Cancel
Save