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.10 to 0.7.11

2

lib/octonode.js

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.4
// Generated by CoffeeScript 1.12.5
(function() {

@@ -3,0 +3,0 @@ var octonode;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.4
// Generated by CoffeeScript 1.12.5
(function() {

@@ -3,0 +3,0 @@ var auth, qs, randomstring, request, url;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.4
// Generated by CoffeeScript 1.12.5
(function() {

@@ -3,0 +3,0 @@ var Client, Gist, HttpError, Issue, Label, Me, Milestone, Notification, Org, Pr, Release, Repo, Search, Team, User, extend, request, url,

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.4
// Generated by CoffeeScript 1.12.5
(function() {

@@ -3,0 +3,0 @@ var Gist,

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.4
// Generated by CoffeeScript 1.12.5
(function() {

@@ -3,0 +3,0 @@ var Issue,

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.4
// Generated by CoffeeScript 1.12.5
(function() {

@@ -3,0 +3,0 @@ var Label;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.4
// Generated by CoffeeScript 1.12.5
(function() {

@@ -3,0 +3,0 @@ var Me,

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.4
// Generated by CoffeeScript 1.12.5
(function() {

@@ -3,0 +3,0 @@ var Milestone;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.4
// Generated by CoffeeScript 1.12.5
(function() {

@@ -3,0 +3,0 @@ var Notification;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.4
// Generated by CoffeeScript 1.12.5
(function() {

@@ -3,0 +3,0 @@ var Org,

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.4
// Generated by CoffeeScript 1.12.5
(function() {

@@ -96,2 +96,28 @@ var Pr;

Pr.prototype.createComment = function(comment, cb) {
return this.client.post("/repos/" + this.repo + "/pulls/" + this.number + "/comments", comment, function(err, s, b, h) {
if (err) {
return cb(err);
}
if (s !== 201) {
return cb(new Error("Pr createComment error"));
} else {
return cb(null, b, h);
}
});
};
Pr.prototype.removeComment = function(id, cb) {
return this.client.del("/repos/" + this.repo + "/pulls/" + this.number + "/comments/" + id, {}, function(err, s, b, h) {
if (err) {
return cb(err);
}
if (s !== 204) {
return cb(new Error("Pr removeComment error"));
} else {
return cb(null, b, h);
}
});
};
Pr.prototype.files = function(cb) {

@@ -98,0 +124,0 @@ return this.client.get("/repos/" + this.repo + "/pulls/" + this.number + "/files", function(err, s, b, h) {

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.4
// Generated by CoffeeScript 1.12.5
(function() {

@@ -3,0 +3,0 @@ var Project;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.4
// Generated by CoffeeScript 1.12.5
(function() {

@@ -3,0 +3,0 @@ var Release;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.4
// Generated by CoffeeScript 1.12.5
(function() {

@@ -3,0 +3,0 @@ var Repo,

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.4
// Generated by CoffeeScript 1.12.5
(function() {

@@ -3,0 +3,0 @@ var Search;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.4
// Generated by CoffeeScript 1.12.5
(function() {

@@ -3,0 +3,0 @@ var Team,

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.4
// Generated by CoffeeScript 1.12.5
(function() {

@@ -3,0 +3,0 @@ var User,

{
"name": "octonode",
"version": "0.7.10",
"version": "0.7.11",
"author": "Pavan Kumar Sunkara <pavan.sss1991@gmail.com> (http://pksunkara.github.com)",

@@ -5,0 +5,0 @@ "description": "nodejs wrapper for github v3 api",

@@ -1127,2 +1127,19 @@ # octonode [![Gitter chat](https://badges.gitter.im/pksunkara/octonode.svg)](https://gitter.im/pksunkara/octonode)

#### Add a comment on a pull request (POST /repos/pksunkara/hub/pulls/37/comments)
```js
ghpr.createComment({
body: 'my comment',
commit_id: '8cde3b6c5be2c3067cd87ee4117c0f65e30f3e1f', // needed to comment on current time in PR
path: 'file.txt', // optional
position: 4 // optional
}, callback);
```
#### Remove a comment on a pull request (DELETE /repos/pksunkara/hub/pulls/37/comments/104)
```js
ghpr.removecomment(104, callback);
```
#### List files in pull request (GET /repos/pksunkara/hub/pulls/37/files)

@@ -1505,6 +1522,4 @@

repo.get_pull_request_comment('id', callback);
repo.create_pull_request_comment('id', {body:'', commit_id:'', path:'', position:''}, callback);
repo.reply_to_pull_request_comment('id', 'body', callback);
repo.edit_pull_request_comment('id', 'body', callback);
repo.delete_pull_request_comment('id', callback);
repo.get_issues(params, callback);

@@ -1511,0 +1526,0 @@ repo.get_issue('id', callback);

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