Socket
Socket
Sign inDemoInstall

octonode

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

octonode - npm Package Compare versions

Comparing version 0.7.11 to 0.7.12

13

lib/octonode/repo.js

@@ -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) {

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc