Comparing version 0.7.11 to 0.7.12
@@ -838,2 +838,15 @@ // Generated by CoffeeScript 1.12.5 | ||
Repo.prototype.combinedStatus = function(ref, cb) { | ||
return this.client.get("/repos/" + this.name + "/commits/" + ref + "/status", function(err, s, b, h) { | ||
if (err) { | ||
return cb(err); | ||
} | ||
if (s !== 200) { | ||
return cb(new Error("Repo statuses error")); | ||
} else { | ||
return cb(null, b, h); | ||
} | ||
}); | ||
}; | ||
Repo.prototype.status = function(sha, obj, cb) { | ||
@@ -840,0 +853,0 @@ return this.client.post("/repos/" + this.name + "/statuses/" + sha, obj, function(err, s, b, h) { |
{ | ||
"name": "octonode", | ||
"version": "0.7.11", | ||
"version": "0.7.12", | ||
"author": "Pavan Kumar Sunkara <pavan.sss1991@gmail.com> (http://pksunkara.github.com)", | ||
@@ -5,0 +5,0 @@ "description": "nodejs wrapper for github v3 api", |
@@ -793,2 +793,8 @@ # octonode [![Gitter chat](https://badges.gitter.im/pksunkara/octonode.svg)](https://gitter.im/pksunkara/octonode) | ||
#### List the combined status for a specific ref (GET /repos/pksunkara/hub/commits/master/status) | ||
```js | ||
ghrepo.combinedStatus('master', callback); //array of statuses | ||
``` | ||
#### Create status (POST /repos/pksunkara/hub/statuses/SHA) | ||
@@ -795,0 +801,0 @@ |
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
138332
3153
1574