Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github

Package Overview
Dependencies
Maintainers
2
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github - npm Package Compare versions

Comparing version 7.1.0 to 7.2.0

14

CHANGELOG.md
# CHANGELOG
## 7.1.0
## 7.2.0
Features:
Preview Review Requests API.
Preview pull request reviews.
Traffic api now official.
Bug fixes:
* Provide correct values for moveProjectsCard "position" parameter.
Fix link for accept header example in README.
## 7.1.0
Features:

@@ -12,2 +19,5 @@ * Add a TypeScript generator.

Bug fixes:
* Provide correct values for moveProjectsCard "position" parameter.
## 7.0.1

@@ -14,0 +24,0 @@

4

package.json
{
"name": "github",
"version": "7.1.0",
"version": "7.2.0",
"description": "NodeJS wrapper for the GitHub API",

@@ -53,3 +53,3 @@ "author": "Mike de Boer <info@mikedeboer.nl>",

"name": "node-github",
"version": "7.1.0",
"version": "7.2.0",
"template": {

@@ -56,0 +56,0 @@ "withCompare": true

@@ -182,3 +182,3 @@ **NOTE: The `node-github` npm package is deprecated. You want the `github` npm package (see Installation).**

Accept headers for the preview APIs should be taken care of behind the scenes, but in the event a preview endpoint isn't working, see [here](https://github.com/mikedeboer/node-github/blob/master/examples/getReactionsForIssue.js) for an example on how to add the required custom accept header.
Accept headers for the preview APIs should be taken care of behind the scenes, but in the event a preview endpoint isn't working, see [here](https://github.com/mikedeboer/node-github/blob/master/examples/getRawBlob.js) for an example on how to add the required custom accept header.

@@ -202,3 +202,2 @@ For updates on endpoints under preview, see https://developer.github.com/changes/.

| Reactions | application/vnd.github.squirrel-girl-preview |
| Repository Traffic | application/vnd.github.spiderman-preview |
| Timeline | application/vnd.github.mockingbird-preview |

@@ -205,0 +204,0 @@

@@ -116,2 +116,38 @@ /*

it("should successfully execute POST /repos/:owner/:repo/pulls/:number/reviews (createReview)", function(next) {
client.pullRequests.createReview(
{
owner: "String",
repo: "String",
number: "Number",
body: "String",
event: "String",
comments: "Array",
path: "String",
position: "Number"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute POST /repos/:owner/:repo/pulls/:number/requested_reviewers (createReviewRequest)", function(next) {
client.pullRequests.createReviewRequest(
{
owner: "String",
repo: "String",
number: "Number",
reviewers: "Array"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute DELETE /repos/:owner/:repo/pulls/comments/:id (deleteComment)", function(next) {

@@ -132,2 +168,37 @@ client.pullRequests.deleteComment(

it("should successfully execute DELETE /repos/:owner/:repo/pulls/:number/requested_reviewers (deleteReviewRequest)", function(next) {
client.pullRequests.deleteReviewRequest(
{
owner: "String",
repo: "String",
number: "Number",
reviewers: "Array"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute GET /repos/:owner/:repo/pulls/:number/reviews/:id/dismissals (dismissReview)", function(next) {
client.pullRequests.dismissReview(
{
owner: "String",
repo: "String",
number: "Number",
id: "String",
message: "String",
page: "Number",
per_page: "Number"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute PATCH /repos/:owner/:repo/pulls/comments/:id (editComment)", function(next) {

@@ -270,2 +341,68 @@ client.pullRequests.editComment(

it("should successfully execute GET /repos/:owner/pulls/:number/reviews/:id (getReview)", function(next) {
client.pullRequests.getReview(
{
owner: "String",
number: "Number",
id: "String"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute GET /repos/:owner/:repo/pulls/:number/requested_reviewers (getReviewRequests)", function(next) {
client.pullRequests.getReviewRequests(
{
owner: "String",
repo: "String",
number: "Number",
page: "Number",
per_page: "Number"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute GET /repos/:owner/:repo/pulls/:number/reviews (getReviews)", function(next) {
client.pullRequests.getReviews(
{
owner: "String",
repo: "String",
number: "Number",
page: "Number",
per_page: "Number"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute GET /repos/:owner/pulls/:number/reviews/:id/comments (getReviewsComments)", function(next) {
client.pullRequests.getReviewsComments(
{
owner: "String",
number: "Number",
id: "String",
page: "Number",
per_page: "Number"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute PUT /repos/:owner/:repo/pulls/:number/merge (merge)", function(next) {

@@ -290,2 +427,20 @@ client.pullRequests.merge(

it("should successfully execute POST /repos/:owner/:repo/pulls/:number/reviews/:id/events (submitReview)", function(next) {
client.pullRequests.submitReview(
{
owner: "String",
repo: "String",
number: "Number",
id: "String",
body: "String",
event: "String"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute PATCH /repos/:owner/:repo/pulls/:number (update)", function(next) {

@@ -292,0 +447,0 @@ client.pullRequests.update(

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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