github-build
Advanced tools
Comparing version 1.0.2 to 1.1.0
10
index.js
@@ -10,8 +10,8 @@ const axios = require('axios') | ||
start () {return update(this.meta, 'pending')} | ||
pass () {return update(this.meta, 'success')} | ||
fail () {return update(this.meta, 'failure')} | ||
error () {return update(this.meta, 'error')} | ||
pass (message) {return update(this.meta, message, 'success')} | ||
fail (message) {return update(this.meta, message, 'failure')} | ||
error (message) {return update(this.meta, message, 'error')} | ||
} | ||
const update = (build, status) => new Promise((resolve, reject) => { | ||
const update = (build, message, status) => new Promise((resolve, reject) => { | ||
axios({ | ||
@@ -24,3 +24,3 @@ method: 'POST', | ||
target_url: build.url, | ||
description: build.description, | ||
description: message || build.description, | ||
context: build.context | ||
@@ -27,0 +27,0 @@ }, |
{ | ||
"name": "github-build", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Github builds/checks for CI", | ||
"main": "index.js", | ||
"keywords": ["github", "build", "checks", "ci"], | ||
"keywords": [ | ||
"github", | ||
"build", | ||
"checks", | ||
"ci" | ||
], | ||
"homepage": "https://github.com/siddharthkp/github-build", | ||
@@ -17,3 +22,5 @@ "repository": { | ||
}, | ||
"files": ["index.js"] | ||
"files": [ | ||
"index.js" | ||
] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4500