New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github4

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github4 - npm Package Compare versions

Comparing version 0.2.11 to 0.2.12

apidoc/api_data.js

3

examples/get_user.js

@@ -17,2 +17,3 @@ /** section: github, internal

var Client = require("./../index");
var testAuth = require("./../test_auth.json");

@@ -25,3 +26,3 @@ var github = new Client({

type: "oauth",
token: "TOKEN" // Replace with your oauth token
token: testAuth["token"]
});

@@ -28,0 +29,0 @@

@@ -42,46 +42,58 @@ #!/usr/bin/env node

function createComment(paramsStruct, section, funcName) {
var params = Object.keys(paramsStruct);
var comment = [
"/** section: github",
" * " + section + "#" + funcName + "(msg, callback) -> null",
" * - msg (Object): Object that contains the parameters and their values to be sent to the server.",
" * - callback (Function): function to call when the request is finished " +
"with an error as first argument and result data as second argument.",
" * ",
" * ##### Params on the `msg` object:",
" * "
function createComment(section, funcName, block) {
var method = block['method'].toLowerCase();
var url = block['url'];
var funcDisplayName = funcName;
// apidocjs bug: https://github.com/apidoc/apidoc/issues/391
if (funcDisplayName === "watch") {
funcDisplayName = "watch2";
}
var commentLines = [
"/**",
" * @api {" + method + "} " + url + " " + funcName,
" * @apiName " + funcDisplayName,
" * @apiGroup " + section,
" *"
];
comment.push(" * - headers (Object): Optional. Key/ value pair "
+ "of request headers to pass along with the HTTP request. Valid headers are: "
+ "'" + defines["request-headers"].join("', '") + "'.");
if (!params.length)
comment.push(" * No other params, simply pass an empty Object literal `{}`");
var paramName, def, line;
for (var i = 0, l = params.length; i < l; ++i) {
paramName = params[i];
if (paramName.charAt(0) == "$") {
paramName = paramName.substr(1);
if (!defines.params[paramName]) {
Util.log("Invalid variable parameter name substitution; param '" +
paramName + "' not found in defines block", "fatal");
process.exit(1);
}
else
def = defines.params[paramName];
var paramsObj = block['params'];
// sort params so Required come before Optional
var paramKeys = Object.keys(paramsObj);
paramKeys.sort(function(paramA, paramB) {
var cleanParamA = paramA.replace(/^\$/, "");
var cleanParamB = paramB.replace(/^\$/, "");
var paramInfoA = paramsObj[paramA] || defines['params'][cleanParamA];
var paramInfoB = paramsObj[paramB] || defines['params'][cleanParamB];
var paramRequiredA = paramInfoA['required'];
var paramRequiredB = paramInfoB['required'];
if (paramRequiredA && !paramRequiredB) return -1;
if (!paramRequiredA && paramRequiredB) return 1;
return 0;
});
paramKeys.forEach(function(param) {
var cleanParam = param.replace(/^\$/, "");
var paramInfo = paramsObj[param] || defines['params'][cleanParam];
var paramRequired = paramInfo['required'];
var paramType = paramInfo['type'];
var paramDescription = paramInfo['description'];
var paramLabel = cleanParam;
if (!paramRequired) {
paramLabel = "[" + paramLabel + "]";
}
else
def = paramsStruct[paramName];
line = " * - " + paramName + " (" + (def.type || "mixed") + "): " +
(def.required ? "Required." : "Optional.");
if (def.description)
line += " " + def.description;
if (def.validation)
line += " Validation rule: ` " + def.validation + " `.";
var optionalLabel = !paramRequired ? "Optional " : " ";
comment.push(line);
}
commentLines.push(" * @apiParam {" + paramType + "} " + paramLabel + " " + optionalLabel + paramDescription);
});
return comment.join("\n") + "\n **/\n";
return commentLines.join("\n") + "\n */\n\n";
}

@@ -119,3 +131,3 @@

Object.keys(struct).forEach(function(routePart) {
Object.keys(struct).sort().forEach(function(routePart) {
var block = struct[routePart];

@@ -137,5 +149,2 @@ if (!block)

sections[section] = [];
apidocs += "/** section: github\n";
apidocs += " * mixin " + section + "\n";
apidocs += " **/\n";
}

@@ -145,3 +154,3 @@

var funcName = Util.toCamelCase(parts.join("-"));
apidocs += createComment(block.params, section, funcName);
apidocs += createComment(section, funcName, block);

@@ -167,3 +176,3 @@ // add test to the testSections

var apidocsPath = Path.join(__dirname, "doc", "apidocs.js");
var apidocsPath = Path.join(__dirname, "doc", "apidoc.js");
fs.writeFileSync(apidocsPath, apidocs);

@@ -170,0 +179,0 @@

@@ -27,108 +27,8 @@ "use strict";

* above, [[Client]] also sets up parameter validation with the rules as
* defined in the routes.json. A full example that illustrates how this works
* is shown below:
* defined in the routes.json.
*
* ##### Example
*
* First, we look at a listing of a sample routes.json routes definition file:
*
* {
* "defines": {
* "constants": {
* "name": "Github",
* "description": "A Node.JS module, which provides an object oriented wrapper for the GitHub v3 API.",
* "protocol": "https",
* "host": "api.github.com",
* "port": 443,
* "dateFormat": "YYYY-MM-DDTHH:MM:SSZ",
* "requestFormat": "json"
* },
* "response-headers": [
* "X-RateLimit-Limit",
* "X-RateLimit-Remaining",
* "Link"
* ],
* "params": {
* "files": {
* "type": "Json",
* "required": true,
* "validation": "",
* "invalidmsg": "",
* "description": "Files that make up this gist. The key of which should be a required string filename and the value another required hash with parameters: 'content'"
* },
* "user": {
* "type": "String",
* "required": true,
* "validation": "",
* "invalidmsg": "",
* "description": ""
* },
* "description": {
* "type": "String",
* "required": false,
* "validation": "",
* "invalidmsg": "",
* "description": ""
* },
* "page": {
* "type": "Number",
* "required": false,
* "validation": "^[0-9]+$",
* "invalidmsg": "",
* "description": "Page number of the results to fetch."
* },
* "per_page": {
* "type": "Number",
* "required": false,
* "validation": "^[0-9]+$",
* "invalidmsg": "",
* "description": "A custom page size up to 100. Default is 30."
* }
* }
* },
*
* "gists": {
* "get-from-user": {
* "url": ":user/gists",
* "method": "GET",
* "params": {
* "$user": null,
* "$page": null,
* "$per_page": null
* }
* },
*
* "create": {
* "url": "/gists",
* "method": "POST",
* "params": {
* "$description": null,
* "public": {
* "type": "Boolean",
* "required": true,
* "validation": "",
* "invalidmsg": "",
* "description": ""
* },
* "$files": null
* }
* }
* }
* }
*
* You probably noticed that the definition is quite verbose and the decision
* for its design was made to be verbose whilst still allowing for basic variable
* definitions and substitions for request parameters.
*
* There are two sections; 'defines' and 'gists' in this example.
*
* The `defines` section contains a list of `constants` that will be used by the
* [[Client]] to make requests to the right URL that hosts the API.
* The `gists` section defines the endpoints for calls to the API server, for
* gists specifically in this example, but the other API sections are defined in
* the exact same way.
* These definitions are parsed and methods are created that the client can call
* to make an HTTP request to the server.
* there is one endpoint defined: .
* In this example, the endpoint `gists/get-from-user` will be exposed as a member
*
* For example, the endpoint `gists/get-from-user` will be exposed as a member
* on the [[Client]] object and may be invoked with

@@ -135,0 +35,0 @@ *

{
"name": "github4",
"version": "0.2.11",
"version": "0.2.12",
"description": "NodeJS wrapper for the GitHub API",

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

}
]
],
"apidoc": {
"title": "github4",
"template": {
"withCompare": false
}
}
}

@@ -27,5 +27,16 @@ ##### NOTE: [mikedeboer/node-github](https://github.com/mikedeboer/node-github) seems to no longer be maintained so I forked it here and am working on applying PRs and issues from that repo. See progress [here](https://github.com/kaizensoze/github4/wiki/Transition-from-upstream).

GitHub API: [https://developer.github.com/v3/](https://developer.github.com/v3/)
Client API: [https://kaizensoze.github.io/github4/](https://kaizensoze.github.io/github4/)
Client API: [https://kaizensoze.github.io/github4/](https://kaizensoze.github.io/github4/)
GitHub API: [https://developer.github.com/v3/](https://developer.github.com/v3/)
## Test auth file
Create test auth file for running tests/examples.
```bash
$ > test_auth.json
{
"token": "<TOKEN>"
}
```
## Example

@@ -122,4 +133,6 @@

## Generate/update docs/tests
## Generate doc/tests
Generate/update doc/tests.
```bash

@@ -129,2 +142,9 @@ $ node generate.js

## Update apidoc
```bash
$ npm install apidoc -g
$ apidoc -i doc/ -o apidoc/
```
## Tests

@@ -131,0 +151,0 @@

@@ -14,6 +14,7 @@ /*

var Client = require("./../../index");
var testAuth = require("./../test_auth.json");
describe("[authorization]", function() {
var client;
var token = "c286e38330e15246a640c2cf32a45ea45d93b2ba";
var token = testAuth["token"];

@@ -28,7 +29,8 @@ beforeEach(function() {

it("should successfully execute GET /authorizations (getAll)", function(next) {
client.authorization.getAll(
it("should successfully execute POST /authorizations (create)", function(next) {
client.authorization.create(
{
page: "Number",
per_page: "Number"
scopes: "Array",
note: "String",
note_url: "String"
},

@@ -43,2 +45,15 @@ function(err, res) {

it("should successfully execute DELETE /authorizations/:id (delete)", function(next) {
client.authorization.delete(
{
id: "String"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute GET /authorizations/:id (get)", function(next) {

@@ -57,8 +72,7 @@ client.authorization.get(

it("should successfully execute POST /authorizations (create)", function(next) {
client.authorization.create(
it("should successfully execute GET /authorizations (getAll)", function(next) {
client.authorization.getAll(
{
scopes: "Array",
note: "String",
note_url: "String"
page: "Number",
per_page: "Number"
},

@@ -90,15 +104,2 @@ function(err, res) {

});
it("should successfully execute DELETE /authorizations/:id (delete)", function(next) {
client.authorization.delete(
{
id: "String"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
});

@@ -14,6 +14,7 @@ /*

var Client = require("./../../index");
var testAuth = require("./../test_auth.json");
describe("[events]", function() {
var client;
var token = "c286e38330e15246a640c2cf32a45ea45d93b2ba";
var token = testAuth["token"];

@@ -42,7 +43,6 @@ beforeEach(function() {

it("should successfully execute GET /repos/:user/:repo/events (getFromRepo)", function(next) {
client.events.getFromRepo(
it("should successfully execute GET /orgs/:org/events (getFromOrg)", function(next) {
client.events.getFromOrg(
{
user: "String",
repo: "String",
org: "String",
page: "Number",

@@ -59,4 +59,4 @@ per_page: "Number"

it("should successfully execute GET /repos/:user/:repo/issues/events (getFromRepoIssues)", function(next) {
client.events.getFromRepoIssues(
it("should successfully execute GET /repos/:user/:repo/events (getFromRepo)", function(next) {
client.events.getFromRepo(
{

@@ -76,4 +76,4 @@ user: "String",

it("should successfully execute GET /networks/:user/:repo/events (getFromRepoNetwork)", function(next) {
client.events.getFromRepoNetwork(
it("should successfully execute GET /repos/:user/:repo/issues/events (getFromRepoIssues)", function(next) {
client.events.getFromRepoIssues(
{

@@ -93,6 +93,7 @@ user: "String",

it("should successfully execute GET /orgs/:org/events (getFromOrg)", function(next) {
client.events.getFromOrg(
it("should successfully execute GET /networks/:user/:repo/events (getFromRepoNetwork)", function(next) {
client.events.getFromRepoNetwork(
{
org: "String",
user: "String",
repo: "String",
page: "Number",

@@ -109,4 +110,4 @@ per_page: "Number"

it("should successfully execute GET /users/:user/received_events (getReceived)", function(next) {
client.events.getReceived(
it("should successfully execute GET /users/:user/events (getFromUser)", function(next) {
client.events.getFromUser(
{

@@ -125,6 +126,7 @@ user: "String",

it("should successfully execute GET /users/:user/received_events/public (getReceivedPublic)", function(next) {
client.events.getReceivedPublic(
it("should successfully execute GET /users/:user/events/orgs/:org (getFromUserOrg)", function(next) {
client.events.getFromUserOrg(
{
user: "String",
org: "String",
page: "Number",

@@ -141,4 +143,4 @@ per_page: "Number"

it("should successfully execute GET /users/:user/events (getFromUser)", function(next) {
client.events.getFromUser(
it("should successfully execute GET /users/:user/events/public (getFromUserPublic)", function(next) {
client.events.getFromUserPublic(
{

@@ -157,4 +159,4 @@ user: "String",

it("should successfully execute GET /users/:user/events/public (getFromUserPublic)", function(next) {
client.events.getFromUserPublic(
it("should successfully execute GET /users/:user/received_events (getReceived)", function(next) {
client.events.getReceived(
{

@@ -173,7 +175,6 @@ user: "String",

it("should successfully execute GET /users/:user/events/orgs/:org (getFromUserOrg)", function(next) {
client.events.getFromUserOrg(
it("should successfully execute GET /users/:user/received_events/public (getReceivedPublic)", function(next) {
client.events.getReceivedPublic(
{
user: "String",
org: "String",
page: "Number",

@@ -180,0 +181,0 @@ per_page: "Number"

@@ -14,6 +14,7 @@ /*

var Client = require("./../../index");
var testAuth = require("./../test_auth.json");
describe("[gists]", function() {
var client;
var token = "c286e38330e15246a640c2cf32a45ea45d93b2ba";
var token = testAuth["token"];

@@ -28,8 +29,6 @@ beforeEach(function() {

it("should successfully execute GET /gists (getAll)", function(next) {
client.gists.getAll(
it("should successfully execute GET /gists/:id/star (checkStar)", function(next) {
client.gists.checkStar(
{
page: "Number",
per_page: "Number",
since: "Date"
id: "String"
},

@@ -44,9 +43,8 @@ function(err, res) {

it("should successfully execute GET /users/:user/gists (getFromUser)", function(next) {
client.gists.getFromUser(
it("should successfully execute POST /gists (create)", function(next) {
client.gists.create(
{
user: "String",
page: "Number",
per_page: "Number",
since: "Date"
description: "String",
public: "Boolean",
files: "Json"
},

@@ -61,8 +59,7 @@ function(err, res) {

it("should successfully execute POST /gists (create)", function(next) {
client.gists.create(
it("should successfully execute POST /gists/:gist_id/comments (createComment)", function(next) {
client.gists.createComment(
{
description: "String",
public: "Boolean",
files: "Json"
gist_id: "String",
body: "String"
},

@@ -77,8 +74,6 @@ function(err, res) {

it("should successfully execute PATCH /gists/:id (edit)", function(next) {
client.gists.edit(
it("should successfully execute DELETE /gists/:id (delete)", function(next) {
client.gists.delete(
{
id: "String",
description: "String",
files: "Json"
id: "String"
},

@@ -93,6 +88,7 @@ function(err, res) {

it("should successfully execute GET /gists/public (public)", function(next) {
client.gists.public(
it("should successfully execute DELETE /gists/:gist_id/comments/:id (deleteComment)", function(next) {
client.gists.deleteComment(
{
since: "Date"
gist_id: "String",
id: "String"
},

@@ -107,6 +103,6 @@ function(err, res) {

it("should successfully execute GET /gists/starred (starred)", function(next) {
client.gists.starred(
it("should successfully execute DELETE /gists/:id/star (deleteStar)", function(next) {
client.gists.deleteStar(
{
since: "Date"
id: "String"
},

@@ -121,6 +117,8 @@ function(err, res) {

it("should successfully execute GET /gists/:id (get)", function(next) {
client.gists.get(
it("should successfully execute PATCH /gists/:id (edit)", function(next) {
client.gists.edit(
{
id: "String"
id: "String",
description: "String",
files: "Json"
},

@@ -135,6 +133,8 @@ function(err, res) {

it("should successfully execute PUT /gists/:id/star (star)", function(next) {
client.gists.star(
it("should successfully execute PATCH /gists/:gist_id/comments/:id (editComment)", function(next) {
client.gists.editComment(
{
id: "String"
gist_id: "String",
id: "String",
body: "String"
},

@@ -149,4 +149,4 @@ function(err, res) {

it("should successfully execute DELETE /gists/:id/star (deleteStar)", function(next) {
client.gists.deleteStar(
it("should successfully execute POST /gists/:id/fork (fork)", function(next) {
client.gists.fork(
{

@@ -163,4 +163,4 @@ id: "String"

it("should successfully execute GET /gists/:id/star (checkStar)", function(next) {
client.gists.checkStar(
it("should successfully execute GET /gists/:id (get)", function(next) {
client.gists.get(
{

@@ -177,6 +177,8 @@ id: "String"

it("should successfully execute POST /gists/:id/fork (fork)", function(next) {
client.gists.fork(
it("should successfully execute GET /gists (getAll)", function(next) {
client.gists.getAll(
{
id: "String"
page: "Number",
per_page: "Number",
since: "Date"
},

@@ -191,5 +193,6 @@ function(err, res) {

it("should successfully execute DELETE /gists/:id (delete)", function(next) {
client.gists.delete(
it("should successfully execute GET /gists/:gist_id/comments/:id (getComment)", function(next) {
client.gists.getComment(
{
gist_id: "String",
id: "String"

@@ -218,7 +221,9 @@ },

it("should successfully execute GET /gists/:gist_id/comments/:id (getComment)", function(next) {
client.gists.getComment(
it("should successfully execute GET /users/:user/gists (getFromUser)", function(next) {
client.gists.getFromUser(
{
gist_id: "String",
id: "String"
user: "String",
page: "Number",
per_page: "Number",
since: "Date"
},

@@ -233,7 +238,6 @@ function(err, res) {

it("should successfully execute POST /gists/:gist_id/comments (createComment)", function(next) {
client.gists.createComment(
it("should successfully execute GET /gists/public (public)", function(next) {
client.gists.public(
{
gist_id: "String",
body: "String"
since: "Date"
},

@@ -248,8 +252,6 @@ function(err, res) {

it("should successfully execute PATCH /gists/:gist_id/comments/:id (editComment)", function(next) {
client.gists.editComment(
it("should successfully execute PUT /gists/:id/star (star)", function(next) {
client.gists.star(
{
gist_id: "String",
id: "String",
body: "String"
id: "String"
},

@@ -264,7 +266,6 @@ function(err, res) {

it("should successfully execute DELETE /gists/:gist_id/comments/:id (deleteComment)", function(next) {
client.gists.deleteComment(
it("should successfully execute GET /gists/starred (starred)", function(next) {
client.gists.starred(
{
gist_id: "String",
id: "String"
since: "Date"
},

@@ -271,0 +272,0 @@ function(err, res) {

@@ -14,6 +14,7 @@ /*

var Client = require("./../../index");
var testAuth = require("./../test_auth.json");
describe("[gitdata]", function() {
var client;
var token = "c286e38330e15246a640c2cf32a45ea45d93b2ba";
var token = testAuth["token"];

@@ -28,10 +29,9 @@ beforeEach(function() {

it("should successfully execute GET /repos/:user/:repo/git/blobs/:sha (getBlob)", function(next) {
client.gitdata.getBlob(
it("should successfully execute POST /repos/:user/:repo/git/blobs (createBlob)", function(next) {
client.gitdata.createBlob(
{
user: "String",
repo: "String",
sha: "String",
page: "Number",
per_page: "Number"
content: "String",
encoding: "String"
},

@@ -46,9 +46,12 @@ function(err, res) {

it("should successfully execute POST /repos/:user/:repo/git/blobs (createBlob)", function(next) {
client.gitdata.createBlob(
it("should successfully execute POST /repos/:user/:repo/git/commits (createCommit)", function(next) {
client.gitdata.createCommit(
{
user: "String",
repo: "String",
content: "String",
encoding: "String"
message: "String",
tree: "String",
parents: "Array",
author: "Json",
committer: "Json"
},

@@ -63,7 +66,8 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/git/commits/:sha (getCommit)", function(next) {
client.gitdata.getCommit(
it("should successfully execute POST /repos/:user/:repo/git/refs (createReference)", function(next) {
client.gitdata.createReference(
{
user: "String",
repo: "String",
ref: "String",
sha: "String"

@@ -79,12 +83,12 @@ },

it("should successfully execute POST /repos/:user/:repo/git/commits (createCommit)", function(next) {
client.gitdata.createCommit(
it("should successfully execute POST /repos/:user/:repo/git/tags (createTag)", function(next) {
client.gitdata.createTag(
{
user: "String",
repo: "String",
tag: "String",
message: "String",
tree: "String",
parents: "Array",
author: "Json",
committer: "Json"
object: "String",
type: "String",
tagger: "Json"
},

@@ -99,8 +103,9 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/git/refs/:ref (getReference)", function(next) {
client.gitdata.getReference(
it("should successfully execute POST /repos/:user/:repo/git/trees (createTree)", function(next) {
client.gitdata.createTree(
{
user: "String",
repo: "String",
ref: "String"
tree: "Json",
base_tree: "String"
},

@@ -115,9 +120,8 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/git/refs (getAllReferences)", function(next) {
client.gitdata.getAllReferences(
it("should successfully execute DELETE /repos/:user/:repo/git/refs/:ref (deleteReference)", function(next) {
client.gitdata.deleteReference(
{
user: "String",
repo: "String",
page: "Number",
per_page: "Number"
ref: "String"
},

@@ -132,9 +136,9 @@ function(err, res) {

it("should successfully execute POST /repos/:user/:repo/git/refs (createReference)", function(next) {
client.gitdata.createReference(
it("should successfully execute GET /repos/:user/:repo/git/refs (getAllReferences)", function(next) {
client.gitdata.getAllReferences(
{
user: "String",
repo: "String",
ref: "String",
sha: "String"
page: "Number",
per_page: "Number"
},

@@ -149,10 +153,10 @@ function(err, res) {

it("should successfully execute PATCH /repos/:user/:repo/git/refs/:ref (updateReference)", function(next) {
client.gitdata.updateReference(
it("should successfully execute GET /repos/:user/:repo/git/blobs/:sha (getBlob)", function(next) {
client.gitdata.getBlob(
{
user: "String",
repo: "String",
ref: "String",
sha: "String",
force: "Boolean"
page: "Number",
per_page: "Number"
},

@@ -167,8 +171,8 @@ function(err, res) {

it("should successfully execute DELETE /repos/:user/:repo/git/refs/:ref (deleteReference)", function(next) {
client.gitdata.deleteReference(
it("should successfully execute GET /repos/:user/:repo/git/commits/:sha (getCommit)", function(next) {
client.gitdata.getCommit(
{
user: "String",
repo: "String",
ref: "String"
sha: "String"
},

@@ -183,8 +187,8 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/git/tags/:sha (getTag)", function(next) {
client.gitdata.getTag(
it("should successfully execute GET /repos/:user/:repo/git/refs/:ref (getReference)", function(next) {
client.gitdata.getReference(
{
user: "String",
repo: "String",
sha: "String"
ref: "String"
},

@@ -199,12 +203,8 @@ function(err, res) {

it("should successfully execute POST /repos/:user/:repo/git/tags (createTag)", function(next) {
client.gitdata.createTag(
it("should successfully execute GET /repos/:user/:repo/git/tags/:sha (getTag)", function(next) {
client.gitdata.getTag(
{
user: "String",
repo: "String",
tag: "String",
message: "String",
object: "String",
type: "String",
tagger: "Json"
sha: "String"
},

@@ -235,9 +235,10 @@ function(err, res) {

it("should successfully execute POST /repos/:user/:repo/git/trees (createTree)", function(next) {
client.gitdata.createTree(
it("should successfully execute PATCH /repos/:user/:repo/git/refs/:ref (updateReference)", function(next) {
client.gitdata.updateReference(
{
user: "String",
repo: "String",
tree: "Json",
base_tree: "String"
ref: "String",
sha: "String",
force: "Boolean"
},

@@ -244,0 +245,0 @@ function(err, res) {

@@ -14,6 +14,7 @@ /*

var Client = require("./../../index");
var testAuth = require("./../test_auth.json");
describe("[gitignore]", function() {
var client;
var token = "c286e38330e15246a640c2cf32a45ea45d93b2ba";
var token = testAuth["token"];

@@ -28,5 +29,7 @@ beforeEach(function() {

it("should successfully execute GET /gitignore/templates (templates)", function(next) {
client.gitignore.templates(
{},
it("should successfully execute GET /gitignore/templates/:name (template)", function(next) {
client.gitignore.template(
{
name: "String"
},
function(err, res) {

@@ -40,7 +43,5 @@ Assert.equal(err, null);

it("should successfully execute GET /gitignore/templates/:name (template)", function(next) {
client.gitignore.template(
{
name: "String"
},
it("should successfully execute GET /gitignore/templates (templates)", function(next) {
client.gitignore.templates(
{},
function(err, res) {

@@ -47,0 +48,0 @@ Assert.equal(err, null);

@@ -14,6 +14,7 @@ /*

var Client = require("./../../index");
var testAuth = require("./../test_auth.json");
describe("[issues]", function() {
var client;
var token = "c286e38330e15246a640c2cf32a45ea45d93b2ba";
var token = testAuth["token"];

@@ -28,13 +29,12 @@ beforeEach(function() {

it("should successfully execute GET /issues (getAll)", function(next) {
client.issues.getAll(
it("should successfully execute POST /repos/:user/:repo/issues (create)", function(next) {
client.issues.create(
{
filter: "String",
state: "String",
labels: "String",
sort: "String",
direction: "String",
since: "Date",
page: "Number",
per_page: "Number"
user: "String",
repo: "String",
title: "String",
body: "String",
assignee: "String",
milestone: "Number",
labels: "Json"
},

@@ -49,18 +49,9 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/issues (repoIssues)", function(next) {
client.issues.repoIssues(
it("should successfully execute POST /repos/:user/:repo/issues/:number/comments (createComment)", function(next) {
client.issues.createComment(
{
user: "String",
repo: "String",
milestone: "String",
state: "String",
assignee: "String",
creator: "String",
mentioned: "String",
labels: "String",
sort: "String",
direction: "String",
since: "Date",
page: "Number",
per_page: "Number"
number: "Number",
body: "String"
},

@@ -75,8 +66,9 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/issues/:number (getRepoIssue)", function(next) {
client.issues.getRepoIssue(
it("should successfully execute POST /repos/:user/:repo/labels (createLabel)", function(next) {
client.issues.createLabel(
{
user: "String",
repo: "String",
number: "Number"
name: "String",
color: "String"
},

@@ -91,4 +83,4 @@ function(err, res) {

it("should successfully execute POST /repos/:user/:repo/issues (create)", function(next) {
client.issues.create(
it("should successfully execute POST /repos/:user/:repo/milestones (createMilestone)", function(next) {
client.issues.createMilestone(
{

@@ -98,6 +90,5 @@ user: "String",

title: "String",
body: "String",
assignee: "String",
milestone: "Number",
labels: "Json"
state: "String",
description: "String",
due_on: "Date"
},

@@ -112,14 +103,8 @@ function(err, res) {

it("should successfully execute PATCH /repos/:user/:repo/issues/:number (edit)", function(next) {
client.issues.edit(
it("should successfully execute DELETE /repos/:user/:repo/issues/comments/:id (deleteComment)", function(next) {
client.issues.deleteComment(
{
user: "String",
repo: "String",
number: "Number",
title: "String",
body: "String",
assignee: "String",
milestone: "Number",
labels: "Json",
state: "String"
id: "String"
},

@@ -134,12 +119,8 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/issues/comments (repoComments)", function(next) {
client.issues.repoComments(
it("should successfully execute DELETE /repos/:user/:repo/labels/:name (deleteLabel)", function(next) {
client.issues.deleteLabel(
{
user: "String",
repo: "String",
sort: "String",
direction: "String",
since: "Date",
page: "Number",
per_page: "Number"
name: "String"
},

@@ -154,10 +135,8 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/issues/:number/comments (getComments)", function(next) {
client.issues.getComments(
it("should successfully execute DELETE /repos/:user/:repo/milestones/:number (deleteMilestone)", function(next) {
client.issues.deleteMilestone(
{
user: "String",
repo: "String",
number: "Number",
page: "Number",
per_page: "Number"
number: "Number"
},

@@ -172,8 +151,14 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/issues/comments/:id (getComment)", function(next) {
client.issues.getComment(
it("should successfully execute PATCH /repos/:user/:repo/issues/:number (edit)", function(next) {
client.issues.edit(
{
user: "String",
repo: "String",
id: "String"
number: "Number",
title: "String",
body: "String",
assignee: "String",
milestone: "Number",
labels: "Json",
state: "String"
},

@@ -188,8 +173,8 @@ function(err, res) {

it("should successfully execute POST /repos/:user/:repo/issues/:number/comments (createComment)", function(next) {
client.issues.createComment(
it("should successfully execute PATCH /repos/:user/:repo/issues/comments/:id (editComment)", function(next) {
client.issues.editComment(
{
user: "String",
repo: "String",
number: "Number",
id: "String",
body: "String"

@@ -205,9 +190,13 @@ },

it("should successfully execute PATCH /repos/:user/:repo/issues/comments/:id (editComment)", function(next) {
client.issues.editComment(
it("should successfully execute GET /issues (getAll)", function(next) {
client.issues.getAll(
{
user: "String",
repo: "String",
id: "String",
body: "String"
filter: "String",
state: "String",
labels: "String",
sort: "String",
direction: "String",
since: "Date",
page: "Number",
per_page: "Number"
},

@@ -222,8 +211,11 @@ function(err, res) {

it("should successfully execute DELETE /repos/:user/:repo/issues/comments/:id (deleteComment)", function(next) {
client.issues.deleteComment(
it("should successfully execute GET /repos/:user/:repo/milestones (getAllMilestones)", function(next) {
client.issues.getAllMilestones(
{
user: "String",
repo: "String",
id: "String"
state: "String",
sort: "String",
page: "Number",
per_page: "Number"
},

@@ -238,10 +230,8 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/issues/:number/events (getEvents)", function(next) {
client.issues.getEvents(
it("should successfully execute GET /repos/:user/:repo/issues/comments/:id (getComment)", function(next) {
client.issues.getComment(
{
user: "String",
repo: "String",
number: "Number",
page: "Number",
per_page: "Number"
id: "String"
},

@@ -256,7 +246,8 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/issues/events (getRepoEvents)", function(next) {
client.issues.getRepoEvents(
it("should successfully execute GET /repos/:user/:repo/issues/:number/comments (getComments)", function(next) {
client.issues.getComments(
{
user: "String",
repo: "String",
number: "Number",
page: "Number",

@@ -288,7 +279,8 @@ per_page: "Number"

it("should successfully execute GET /repos/:user/:repo/labels (getLabels)", function(next) {
client.issues.getLabels(
it("should successfully execute GET /repos/:user/:repo/issues/:number/events (getEvents)", function(next) {
client.issues.getEvents(
{
user: "String",
repo: "String",
number: "Number",
page: "Number",

@@ -305,2 +297,17 @@ per_page: "Number"

it("should successfully execute GET /repos/:user/:repo/issues/:number/labels (getIssueLabels)", function(next) {
client.issues.getIssueLabels(
{
user: "String",
repo: "String",
number: "Number"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute GET /repos/:user/:repo/labels/:name (getLabel)", function(next) {

@@ -321,9 +328,9 @@ client.issues.getLabel(

it("should successfully execute POST /repos/:user/:repo/labels (createLabel)", function(next) {
client.issues.createLabel(
it("should successfully execute GET /repos/:user/:repo/labels (getLabels)", function(next) {
client.issues.getLabels(
{
user: "String",
repo: "String",
name: "String",
color: "String"
page: "Number",
per_page: "Number"
},

@@ -338,9 +345,8 @@ function(err, res) {

it("should successfully execute POST /repos/:user/:repo/labels/:name (updateLabel)", function(next) {
client.issues.updateLabel(
it("should successfully execute GET /repos/:user/:repo/milestones/:number (getMilestone)", function(next) {
client.issues.getMilestone(
{
user: "String",
repo: "String",
name: "String",
color: "String"
number: "Number"
},

@@ -355,8 +361,9 @@ function(err, res) {

it("should successfully execute DELETE /repos/:user/:repo/labels/:name (deleteLabel)", function(next) {
client.issues.deleteLabel(
it("should successfully execute GET /repos/:user/:repo/issues/events (getRepoEvents)", function(next) {
client.issues.getRepoEvents(
{
user: "String",
repo: "String",
name: "String"
page: "Number",
per_page: "Number"
},

@@ -371,4 +378,4 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/issues/:number/labels (getIssueLabels)", function(next) {
client.issues.getIssueLabels(
it("should successfully execute GET /repos/:user/:repo/issues/:number (getRepoIssue)", function(next) {
client.issues.getRepoIssue(
{

@@ -387,9 +394,10 @@ user: "String",

it("should successfully execute GET /repos/:user/:repo/milestones (getAllMilestones)", function(next) {
client.issues.getAllMilestones(
it("should successfully execute GET /repos/:user/:repo/issues/comments (repoComments)", function(next) {
client.issues.repoComments(
{
user: "String",
repo: "String",
state: "String",
sort: "String",
direction: "String",
since: "Date",
page: "Number",

@@ -406,8 +414,18 @@ per_page: "Number"

it("should successfully execute GET /repos/:user/:repo/milestones/:number (getMilestone)", function(next) {
client.issues.getMilestone(
it("should successfully execute GET /repos/:user/:repo/issues (repoIssues)", function(next) {
client.issues.repoIssues(
{
user: "String",
repo: "String",
number: "Number"
milestone: "String",
state: "String",
assignee: "String",
creator: "String",
mentioned: "String",
labels: "String",
sort: "String",
direction: "String",
since: "Date",
page: "Number",
per_page: "Number"
},

@@ -422,11 +440,9 @@ function(err, res) {

it("should successfully execute POST /repos/:user/:repo/milestones (createMilestone)", function(next) {
client.issues.createMilestone(
it("should successfully execute POST /repos/:user/:repo/labels/:name (updateLabel)", function(next) {
client.issues.updateLabel(
{
user: "String",
repo: "String",
title: "String",
state: "String",
description: "String",
due_on: "Date"
name: "String",
color: "String"
},

@@ -459,17 +475,2 @@ function(err, res) {

});
it("should successfully execute DELETE /repos/:user/:repo/milestones/:number (deleteMilestone)", function(next) {
client.issues.deleteMilestone(
{
user: "String",
repo: "String",
number: "Number"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
});

@@ -14,6 +14,7 @@ /*

var Client = require("./../../index");
var testAuth = require("./../test_auth.json");
describe("[markdown]", function() {
var client;
var token = "c286e38330e15246a640c2cf32a45ea45d93b2ba";
var token = testAuth["token"];

@@ -20,0 +21,0 @@ beforeEach(function() {

@@ -14,6 +14,7 @@ /*

var Client = require("./../../index");
var testAuth = require("./../test_auth.json");
describe("[misc]", function() {
var client;
var token = "c286e38330e15246a640c2cf32a45ea45d93b2ba";
var token = testAuth["token"];

@@ -20,0 +21,0 @@ beforeEach(function() {

@@ -14,6 +14,7 @@ /*

var Client = require("./../../index");
var testAuth = require("./../test_auth.json");
describe("[orgs]", function() {
var client;
var token = "c286e38330e15246a640c2cf32a45ea45d93b2ba";
var token = testAuth["token"];

@@ -28,8 +29,7 @@ beforeEach(function() {

it("should successfully execute GET /users/:user/orgs (getFromUser)", function(next) {
client.orgs.getFromUser(
it("should successfully execute PUT /orgs/:org/memberships/:user (addOrganizationMembership)", function(next) {
client.orgs.addOrganizationMembership(
{
user: "String",
page: "Number",
per_page: "Number"
org: "String",
user: "String"
},

@@ -44,8 +44,7 @@ function(err, res) {

it("should successfully execute GET /orgs/:org (get)", function(next) {
client.orgs.get(
it("should successfully execute PUT /teams/:id/members/:user (addTeamMember)", function(next) {
client.orgs.addTeamMember(
{
org: "String",
page: "Number",
per_page: "Number"
id: "String",
user: "String"
},

@@ -60,11 +59,7 @@ function(err, res) {

it("should successfully execute PATCH /orgs/:org (update)", function(next) {
client.orgs.update(
it("should successfully execute PUT /teams/:id/memberships/:user (addTeamMembership)", function(next) {
client.orgs.addTeamMembership(
{
org: "String",
billing_email: "String",
company: "String",
email: "String",
location: "String",
name: "String"
id: "String",
user: "String"
},

@@ -79,9 +74,8 @@ function(err, res) {

it("should successfully execute GET /orgs/:org/members (getMembers)", function(next) {
client.orgs.getMembers(
it("should successfully execute PUT /teams/:id/repos/:user/:repo (addTeamRepo)", function(next) {
client.orgs.addTeamRepo(
{
org: "String",
page: "Number",
per_page: "Number",
filter: "String"
id: "String",
user: "String",
repo: "String"
},

@@ -96,4 +90,4 @@ function(err, res) {

it("should successfully execute GET /orgs/:org/members/:user (getMember)", function(next) {
client.orgs.getMember(
it("should successfully execute DELETE /orgs/:org/public_members/:user (concealMembership)", function(next) {
client.orgs.concealMembership(
{

@@ -111,7 +105,9 @@ org: "String",

it("should successfully execute DELETE /orgs/:org/members/:user (removeMember)", function(next) {
client.orgs.removeMember(
it("should successfully execute POST /orgs/:org/teams (createTeam)", function(next) {
client.orgs.createTeam(
{
org: "String",
user: "String"
name: "String",
repo_names: "Array",
permission: "String"
},

@@ -126,6 +122,6 @@ function(err, res) {

it("should successfully execute GET /orgs/:org/public_members (getPublicMembers)", function(next) {
client.orgs.getPublicMembers(
it("should successfully execute DELETE /teams/:id (deleteTeam)", function(next) {
client.orgs.deleteTeam(
{
org: "String"
id: "String"
},

@@ -140,6 +136,6 @@ function(err, res) {

it("should successfully execute GET /orgs/:org/public_members/:user (getPublicMember)", function(next) {
client.orgs.getPublicMember(
it("should successfully execute DELETE /teams/:id/members/:user (deleteTeamMember)", function(next) {
client.orgs.deleteTeamMember(
{
org: "String",
id: "String",
user: "String"

@@ -155,7 +151,8 @@ },

it("should successfully execute PUT /orgs/:org/memberships/:user (addOrganizationMembership)", function(next) {
client.orgs.addOrganizationMembership(
it("should successfully execute DELETE /teams/:id/repos/:user/:repo (deleteTeamRepo)", function(next) {
client.orgs.deleteTeamRepo(
{
org: "String",
user: "String"
id: "String",
user: "String",
repo: "String"
},

@@ -170,7 +167,8 @@ function(err, res) {

it("should successfully execute DELETE /orgs/:org/memberships/:user (removeOrganizationMembership)", function(next) {
client.orgs.removeOrganizationMembership(
it("should successfully execute GET /orgs/:org (get)", function(next) {
client.orgs.get(
{
org: "String",
user: "String"
page: "Number",
per_page: "Number"
},

@@ -185,7 +183,8 @@ function(err, res) {

it("should successfully execute PUT /orgs/:org/public_members/:user (publicizeMembership)", function(next) {
client.orgs.publicizeMembership(
it("should successfully execute GET /users/:user/orgs (getFromUser)", function(next) {
client.orgs.getFromUser(
{
org: "String",
user: "String"
user: "String",
page: "Number",
per_page: "Number"
},

@@ -200,4 +199,4 @@ function(err, res) {

it("should successfully execute DELETE /orgs/:org/public_members/:user (concealMembership)", function(next) {
client.orgs.concealMembership(
it("should successfully execute GET /orgs/:org/members/:user (getMember)", function(next) {
client.orgs.getMember(
{

@@ -215,8 +214,9 @@ org: "String",

it("should successfully execute GET /orgs/:org/teams (getTeams)", function(next) {
client.orgs.getTeams(
it("should successfully execute GET /orgs/:org/members (getMembers)", function(next) {
client.orgs.getMembers(
{
org: "String",
page: "Number",
per_page: "Number"
per_page: "Number",
filter: "String"
},

@@ -231,6 +231,7 @@ function(err, res) {

it("should successfully execute GET /teams/:id (getTeam)", function(next) {
client.orgs.getTeam(
it("should successfully execute GET /orgs/:org/public_members/:user (getPublicMember)", function(next) {
client.orgs.getPublicMember(
{
id: "String"
org: "String",
user: "String"
},

@@ -245,9 +246,6 @@ function(err, res) {

it("should successfully execute POST /orgs/:org/teams (createTeam)", function(next) {
client.orgs.createTeam(
it("should successfully execute GET /orgs/:org/public_members (getPublicMembers)", function(next) {
client.orgs.getPublicMembers(
{
org: "String",
name: "String",
repo_names: "Array",
permission: "String"
org: "String"
},

@@ -262,8 +260,6 @@ function(err, res) {

it("should successfully execute PATCH /teams/:id (updateTeam)", function(next) {
client.orgs.updateTeam(
it("should successfully execute GET /teams/:id (getTeam)", function(next) {
client.orgs.getTeam(
{
id: "String",
name: "String",
permission: "String"
id: "String"
},

@@ -278,6 +274,7 @@ function(err, res) {

it("should successfully execute DELETE /teams/:id (deleteTeam)", function(next) {
client.orgs.deleteTeam(
it("should successfully execute GET /teams/:id/members/:user (getTeamMember)", function(next) {
client.orgs.getTeamMember(
{
id: "String"
id: "String",
user: "String"
},

@@ -307,4 +304,4 @@ function(err, res) {

it("should successfully execute GET /teams/:id/members/:user (getTeamMember)", function(next) {
client.orgs.getTeamMember(
it("should successfully execute GET /teams/:id/memberships/:user (getTeamMembership)", function(next) {
client.orgs.getTeamMembership(
{

@@ -322,7 +319,8 @@ id: "String",

it("should successfully execute PUT /teams/:id/members/:user (addTeamMember)", function(next) {
client.orgs.addTeamMember(
it("should successfully execute GET /teams/:id/repos/:user/:repo (getTeamRepo)", function(next) {
client.orgs.getTeamRepo(
{
id: "String",
user: "String"
user: "String",
repo: "String"
},

@@ -337,7 +335,8 @@ function(err, res) {

it("should successfully execute DELETE /teams/:id/members/:user (deleteTeamMember)", function(next) {
client.orgs.deleteTeamMember(
it("should successfully execute GET /teams/:id/repos (getTeamRepos)", function(next) {
client.orgs.getTeamRepos(
{
id: "String",
user: "String"
page: "Number",
per_page: "Number"
},

@@ -352,7 +351,8 @@ function(err, res) {

it("should successfully execute PUT /teams/:id/memberships/:user (addTeamMembership)", function(next) {
client.orgs.addTeamMembership(
it("should successfully execute GET /orgs/:org/teams (getTeams)", function(next) {
client.orgs.getTeams(
{
id: "String",
user: "String"
org: "String",
page: "Number",
per_page: "Number"
},

@@ -367,6 +367,6 @@ function(err, res) {

it("should successfully execute GET /teams/:id/memberships/:user (getTeamMembership)", function(next) {
client.orgs.getTeamMembership(
it("should successfully execute PUT /orgs/:org/public_members/:user (publicizeMembership)", function(next) {
client.orgs.publicizeMembership(
{
id: "String",
org: "String",
user: "String"

@@ -382,8 +382,7 @@ },

it("should successfully execute GET /teams/:id/repos (getTeamRepos)", function(next) {
client.orgs.getTeamRepos(
it("should successfully execute DELETE /orgs/:org/members/:user (removeMember)", function(next) {
client.orgs.removeMember(
{
id: "String",
page: "Number",
per_page: "Number"
org: "String",
user: "String"
},

@@ -398,8 +397,7 @@ function(err, res) {

it("should successfully execute GET /teams/:id/repos/:user/:repo (getTeamRepo)", function(next) {
client.orgs.getTeamRepo(
it("should successfully execute DELETE /orgs/:org/memberships/:user (removeOrganizationMembership)", function(next) {
client.orgs.removeOrganizationMembership(
{
id: "String",
user: "String",
repo: "String"
org: "String",
user: "String"
},

@@ -414,8 +412,11 @@ function(err, res) {

it("should successfully execute PUT /teams/:id/repos/:user/:repo (addTeamRepo)", function(next) {
client.orgs.addTeamRepo(
it("should successfully execute PATCH /orgs/:org (update)", function(next) {
client.orgs.update(
{
id: "String",
user: "String",
repo: "String"
org: "String",
billing_email: "String",
company: "String",
email: "String",
location: "String",
name: "String"
},

@@ -430,8 +431,8 @@ function(err, res) {

it("should successfully execute DELETE /teams/:id/repos/:user/:repo (deleteTeamRepo)", function(next) {
client.orgs.deleteTeamRepo(
it("should successfully execute PATCH /teams/:id (updateTeam)", function(next) {
client.orgs.updateTeam(
{
id: "String",
user: "String",
repo: "String"
name: "String",
permission: "String"
},

@@ -438,0 +439,0 @@ function(err, res) {

@@ -14,6 +14,7 @@ /*

var Client = require("./../../index");
var testAuth = require("./../test_auth.json");
describe("[pullRequests]", function() {
var client;
var token = "c286e38330e15246a640c2cf32a45ea45d93b2ba";
var token = testAuth["token"];

@@ -28,14 +29,11 @@ beforeEach(function() {

it("should successfully execute GET /repos/:user/:repo/pulls (getAll)", function(next) {
client.pullRequests.getAll(
it("should successfully execute POST /repos/:user/:repo/pulls (create)", function(next) {
client.pullRequests.create(
{
user: "String",
repo: "String",
state: "String",
head: "String",
title: "String",
body: "String",
base: "String",
page: "Number",
per_page: "Number",
sort: "String",
direction: "String"
head: "String"
},

@@ -50,8 +48,12 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/pulls/:number (get)", function(next) {
client.pullRequests.get(
it("should successfully execute POST /repos/:user/:repo/pulls/:number/comments (createComment)", function(next) {
client.pullRequests.createComment(
{
user: "String",
repo: "String",
number: "Number"
number: "Number",
body: "String",
commit_id: "String",
path: "String",
position: "Number"
},

@@ -66,11 +68,10 @@ function(err, res) {

it("should successfully execute POST /repos/:user/:repo/pulls (create)", function(next) {
client.pullRequests.create(
it("should successfully execute POST /repos/:user/:repo/pulls/:number/comments (createCommentReply)", function(next) {
client.pullRequests.createCommentReply(
{
user: "String",
repo: "String",
title: "String",
number: "Number",
body: "String",
base: "String",
head: "String"
in_reply_to: "Number"
},

@@ -102,11 +103,8 @@ function(err, res) {

it("should successfully execute PATCH /repos/:user/:repo/pulls/:number (update)", function(next) {
client.pullRequests.update(
it("should successfully execute DELETE /repos/:user/:repo/pulls/comments/:number (deleteComment)", function(next) {
client.pullRequests.deleteComment(
{
user: "String",
repo: "String",
number: "Number",
state: "String",
title: "String",
body: "String"
number: "Number"
},

@@ -121,10 +119,8 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/pulls/:number/commits (getCommits)", function(next) {
client.pullRequests.getCommits(
it("should successfully execute GET /repos/:user/:repo/pulls/:number (get)", function(next) {
client.pullRequests.get(
{
user: "String",
repo: "String",
number: "Number",
page: "Number",
per_page: "Number"
number: "Number"
},

@@ -139,10 +135,14 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/pulls/:number/files (getFiles)", function(next) {
client.pullRequests.getFiles(
it("should successfully execute GET /repos/:user/:repo/pulls (getAll)", function(next) {
client.pullRequests.getAll(
{
user: "String",
repo: "String",
number: "Number",
state: "String",
head: "String",
base: "String",
page: "Number",
per_page: "Number"
per_page: "Number",
sort: "String",
direction: "String"
},

@@ -157,10 +157,8 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/pulls/:number/merge (getMerged)", function(next) {
client.pullRequests.getMerged(
it("should successfully execute GET /repos/:user/:repo/pulls/comments/:number (getComment)", function(next) {
client.pullRequests.getComment(
{
user: "String",
repo: "String",
number: "Number",
page: "Number",
per_page: "Number"
number: "Number"
},

@@ -175,4 +173,4 @@ function(err, res) {

it("should successfully execute PUT /repos/:user/:repo/pulls/:number/merge (merge)", function(next) {
client.pullRequests.merge(
it("should successfully execute GET /repos/:user/:repo/pulls/:number/comments (getComments)", function(next) {
client.pullRequests.getComments(
{

@@ -182,3 +180,4 @@ user: "String",

number: "Number",
commit_message: "String"
page: "Number",
per_page: "Number"
},

@@ -193,4 +192,4 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/pulls/:number/comments (getComments)", function(next) {
client.pullRequests.getComments(
it("should successfully execute GET /repos/:user/:repo/pulls/:number/commits (getCommits)", function(next) {
client.pullRequests.getCommits(
{

@@ -211,8 +210,10 @@ user: "String",

it("should successfully execute GET /repos/:user/:repo/pulls/comments/:number (getComment)", function(next) {
client.pullRequests.getComment(
it("should successfully execute GET /repos/:user/:repo/pulls/:number/files (getFiles)", function(next) {
client.pullRequests.getFiles(
{
user: "String",
repo: "String",
number: "Number"
number: "Number",
page: "Number",
per_page: "Number"
},

@@ -227,4 +228,4 @@ function(err, res) {

it("should successfully execute POST /repos/:user/:repo/pulls/:number/comments (createComment)", function(next) {
client.pullRequests.createComment(
it("should successfully execute GET /repos/:user/:repo/pulls/:number/merge (getMerged)", function(next) {
client.pullRequests.getMerged(
{

@@ -234,6 +235,4 @@ user: "String",

number: "Number",
body: "String",
commit_id: "String",
path: "String",
position: "Number"
page: "Number",
per_page: "Number"
},

@@ -248,4 +247,4 @@ function(err, res) {

it("should successfully execute POST /repos/:user/:repo/pulls/:number/comments (createCommentReply)", function(next) {
client.pullRequests.createCommentReply(
it("should successfully execute PUT /repos/:user/:repo/pulls/:number/merge (merge)", function(next) {
client.pullRequests.merge(
{

@@ -255,4 +254,3 @@ user: "String",

number: "Number",
body: "String",
in_reply_to: "Number"
commit_message: "String"
},

@@ -267,4 +265,4 @@ function(err, res) {

it("should successfully execute PATCH /repos/:user/:repo/pulls/comments/:number (updateComment)", function(next) {
client.pullRequests.updateComment(
it("should successfully execute PATCH /repos/:user/:repo/pulls/:number (update)", function(next) {
client.pullRequests.update(
{

@@ -274,2 +272,4 @@ user: "String",

number: "Number",
state: "String",
title: "String",
body: "String"

@@ -285,8 +285,9 @@ },

it("should successfully execute DELETE /repos/:user/:repo/pulls/comments/:number (deleteComment)", function(next) {
client.pullRequests.deleteComment(
it("should successfully execute PATCH /repos/:user/:repo/pulls/comments/:number (updateComment)", function(next) {
client.pullRequests.updateComment(
{
user: "String",
repo: "String",
number: "Number"
number: "Number",
body: "String"
},

@@ -293,0 +294,0 @@ function(err, res) {

@@ -14,6 +14,7 @@ /*

var Client = require("./../../index");
var testAuth = require("./../test_auth.json");
describe("[releases]", function() {
var client;
var token = "c286e38330e15246a640c2cf32a45ea45d93b2ba";
var token = testAuth["token"];

@@ -28,9 +29,13 @@ beforeEach(function() {

it("should successfully execute GET /repos/:owner/:repo/releases (listReleases)", function(next) {
client.releases.listReleases(
it("should successfully execute POST /repos/:owner/:repo/releases (createRelease)", function(next) {
client.releases.createRelease(
{
owner: "String",
repo: "String",
page: "Number",
per_page: "Number"
tag_name: "String",
target_commitish: "String",
name: "String",
body: "String",
draft: "Boolean",
prerelease: "Boolean"
},

@@ -45,4 +50,4 @@ function(err, res) {

it("should successfully execute GET /repos/:owner/:repo/releases/:id (getRelease)", function(next) {
client.releases.getRelease(
it("should successfully execute DELETE /repos/:owner/:repo/releases/assets/:id (deleteAsset)", function(next) {
client.releases.deleteAsset(
{

@@ -61,6 +66,7 @@ owner: "String",

it("should successfully execute GET /repos/:owner/:repo/releases/latest (getLatestRelease)", function(next) {
client.releases.getLatestRelease(
it("should successfully execute DELETE /repos/:owner/:repo/releases/:id (deleteRelease)", function(next) {
client.releases.deleteRelease(
{
owner: "String",
id: "Number",
repo: "String"

@@ -76,13 +82,10 @@ },

it("should successfully execute POST /repos/:owner/:repo/releases (createRelease)", function(next) {
client.releases.createRelease(
it("should successfully execute PATCH /repos/:owner/:repo/releases/assets/:id (editAsset)", function(next) {
client.releases.editAsset(
{
owner: "String",
id: "Number",
repo: "String",
tag_name: "String",
target_commitish: "String",
name: "String",
body: "String",
draft: "Boolean",
prerelease: "Boolean"
label: "String"
},

@@ -118,4 +121,4 @@ function(err, res) {

it("should successfully execute DELETE /repos/:owner/:repo/releases/:id (deleteRelease)", function(next) {
client.releases.deleteRelease(
it("should successfully execute GET /repos/:owner/:repo/releases/assets/:id (getAsset)", function(next) {
client.releases.getAsset(
{

@@ -134,7 +137,6 @@ owner: "String",

it("should successfully execute GET /repos/:owner/:repo/releases/:id/assets (listAssets)", function(next) {
client.releases.listAssets(
it("should successfully execute GET /repos/:owner/:repo/releases/latest (getLatestRelease)", function(next) {
client.releases.getLatestRelease(
{
owner: "String",
id: "Number",
repo: "String"

@@ -150,4 +152,4 @@ },

it("should successfully execute GET /repos/:owner/:repo/releases/assets/:id (getAsset)", function(next) {
client.releases.getAsset(
it("should successfully execute GET /repos/:owner/:repo/releases/:id (getRelease)", function(next) {
client.releases.getRelease(
{

@@ -166,9 +168,8 @@ owner: "String",

it("should successfully execute POST /repos/:owner/:repo/releases/:id/assets (uploadAsset)", function(next) {
client.releases.uploadAsset(
it("should successfully execute GET /repos/:owner/:repo/releases/:id/assets (listAssets)", function(next) {
client.releases.listAssets(
{
owner: "String",
id: "Number",
repo: "String",
name: "String"
repo: "String"
},

@@ -183,10 +184,9 @@ function(err, res) {

it("should successfully execute PATCH /repos/:owner/:repo/releases/assets/:id (editAsset)", function(next) {
client.releases.editAsset(
it("should successfully execute GET /repos/:owner/:repo/releases (listReleases)", function(next) {
client.releases.listReleases(
{
owner: "String",
id: "Number",
repo: "String",
name: "String",
label: "String"
page: "Number",
per_page: "Number"
},

@@ -201,8 +201,9 @@ function(err, res) {

it("should successfully execute DELETE /repos/:owner/:repo/releases/assets/:id (deleteAsset)", function(next) {
client.releases.deleteAsset(
it("should successfully execute POST /repos/:owner/:repo/releases/:id/assets (uploadAsset)", function(next) {
client.releases.uploadAsset(
{
owner: "String",
id: "Number",
repo: "String"
repo: "String",
name: "String"
},

@@ -209,0 +210,0 @@ function(err, res) {

@@ -14,6 +14,7 @@ /*

var Client = require("./../../index");
var testAuth = require("./../test_auth.json");
describe("[repos]", function() {
var client;
var token = "c286e38330e15246a640c2cf32a45ea45d93b2ba";
var token = testAuth["token"];

@@ -28,10 +29,8 @@ beforeEach(function() {

it("should successfully execute GET /user/repos (getAll)", function(next) {
client.repos.getAll(
it("should successfully execute PUT /repos/:user/:repo/collaborators/:collabuser (addCollaborator)", function(next) {
client.repos.addCollaborator(
{
type: "String",
sort: "String",
direction: "String",
page: "Number",
per_page: "Number"
user: "String",
repo: "String",
collabuser: "String"
},

@@ -46,11 +45,9 @@ function(err, res) {

it("should successfully execute GET /users/:user/repos (getFromUser)", function(next) {
client.repos.getFromUser(
it("should successfully execute GET /repos/:user/:repo/compare/:base...:head (compareCommits)", function(next) {
client.repos.compareCommits(
{
user: "String",
type: "String",
sort: "String",
direction: "String",
page: "Number",
per_page: "Number"
repo: "String",
base: "String",
head: "String"
},

@@ -65,18 +62,2 @@ function(err, res) {

it("should successfully execute GET /orgs/:org/repos (getFromOrg)", function(next) {
client.repos.getFromOrg(
{
org: "String",
type: "String",
page: "Number",
per_page: "Number"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute POST /user/repos (create)", function(next) {

@@ -103,16 +84,13 @@ client.repos.create(

it("should successfully execute POST /orgs/:org/repos (createFromOrg)", function(next) {
client.repos.createFromOrg(
it("should successfully execute POST /repos/:user/:repo/commits/:sha/comments (createCommitComment)", function(next) {
client.repos.createCommitComment(
{
org: "String",
name: "String",
description: "String",
homepage: "String",
private: "Boolean",
has_issues: "Boolean",
has_wiki: "Boolean",
has_downloads: "Boolean",
auto_init: "Boolean",
gitignore_template: "String",
team_id: "Number"
user: "String",
repo: "String",
sha: "String",
body: "String",
commit_id: "String",
path: "String",
position: "Number",
line: "Number"
},

@@ -127,7 +105,11 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo (get)", function(next) {
client.repos.get(
it("should successfully execute PUT /repos/:user/:repo/contents/:path (createContent)", function(next) {
client.repos.createContent(
{
user: "String",
repo: "String"
repo: "String",
content: "String",
message: "String",
path: "String",
ref: "String"
},

@@ -142,6 +124,14 @@ function(err, res) {

it("should successfully execute GET /repositories/:id (one)", function(next) {
client.repos.one(
it("should successfully execute POST /repos/:user/:repo/deployments (createDeployment)", function(next) {
client.repos.createDeployment(
{
id: "String"
ref: "String",
task: "String",
auto_merge: "Boolean",
required_contexts: "Array",
payload: "String",
environment: "String",
description: "String",
user: "String",
repo: "String"
},

@@ -156,15 +146,11 @@ function(err, res) {

it("should successfully execute PATCH /repos/:user/:repo (update)", function(next) {
client.repos.update(
it("should successfully execute POST /repos/:user/:repo/deployments/:id/statuses (createDeploymentStatus)", function(next) {
client.repos.createDeploymentStatus(
{
state: "String",
target_url: "String",
description: "String",
user: "String",
repo: "String",
name: "String",
description: "String",
homepage: "String",
private: "Boolean",
has_issues: "Boolean",
has_wiki: "Boolean",
has_downloads: "Boolean",
default_branch: "String"
id: "String"
},

@@ -179,7 +165,13 @@ function(err, res) {

it("should successfully execute DELETE /repos/:user/:repo (delete)", function(next) {
client.repos.delete(
it("should successfully execute PUT /repos/:user/:repo/contents/:path (createFile)", function(next) {
client.repos.createFile(
{
user: "String",
repo: "String"
repo: "String",
path: "String",
message: "String",
content: "String",
branch: "String",
author: "Json",
committer: "Json"
},

@@ -194,10 +186,16 @@ function(err, res) {

it("should successfully execute POST /repos/:user/:repo/merges (merge)", function(next) {
client.repos.merge(
it("should successfully execute POST /orgs/:org/repos (createFromOrg)", function(next) {
client.repos.createFromOrg(
{
user: "String",
repo: "String",
base: "String",
head: "String",
commit_message: "String"
org: "String",
name: "String",
description: "String",
homepage: "String",
private: "Boolean",
has_issues: "Boolean",
has_wiki: "Boolean",
has_downloads: "Boolean",
auto_init: "Boolean",
gitignore_template: "String",
team_id: "Number"
},

@@ -212,10 +210,11 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/contributors (getContributors)", function(next) {
client.repos.getContributors(
it("should successfully execute POST /repos/:user/:repo/hooks (createHook)", function(next) {
client.repos.createHook(
{
user: "String",
repo: "String",
anon: "Boolean",
page: "Number",
per_page: "Number"
name: "String",
config: "Json",
events: "Array",
active: "Boolean"
},

@@ -230,9 +229,9 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/languages (getLanguages)", function(next) {
client.repos.getLanguages(
it("should successfully execute POST /repos/:user/:repo/keys (createKey)", function(next) {
client.repos.createKey(
{
user: "String",
repo: "String",
page: "Number",
per_page: "Number"
title: "String",
key: "String"
},

@@ -247,9 +246,7 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/teams (getTeams)", function(next) {
client.repos.getTeams(
it("should successfully execute DELETE /repos/:user/:repo (delete)", function(next) {
client.repos.delete(
{
user: "String",
repo: "String",
page: "Number",
per_page: "Number"
repo: "String"
},

@@ -264,9 +261,8 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/tags (getTags)", function(next) {
client.repos.getTags(
it("should successfully execute DELETE /repos/:user/:repo/comments/:id (deleteCommitComment)", function(next) {
client.repos.deleteCommitComment(
{
user: "String",
repo: "String",
page: "Number",
per_page: "Number"
id: "String"
},

@@ -281,9 +277,8 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/branches (getBranches)", function(next) {
client.repos.getBranches(
it("should successfully execute DELETE /repos/:user/:repo/downloads/:id (deleteDownload)", function(next) {
client.repos.deleteDownload(
{
user: "String",
repo: "String",
page: "Number",
per_page: "Number"
id: "String"
},

@@ -298,10 +293,13 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/branches/:branch (getBranch)", function(next) {
client.repos.getBranch(
it("should successfully execute DELETE /repos/:user/:repo/contents/:path (deleteFile)", function(next) {
client.repos.deleteFile(
{
user: "String",
repo: "String",
path: "String",
message: "String",
sha: "String",
branch: "String",
page: "Number",
per_page: "Number"
author: "Json",
committer: "Json"
},

@@ -316,9 +314,8 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/collaborators (getCollaborators)", function(next) {
client.repos.getCollaborators(
it("should successfully execute DELETE /repos/:user/:repo/hooks/:id (deleteHook)", function(next) {
client.repos.deleteHook(
{
user: "String",
repo: "String",
page: "Number",
per_page: "Number"
id: "String"
},

@@ -333,8 +330,8 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/collaborators/:collabuser (getCollaborator)", function(next) {
client.repos.getCollaborator(
it("should successfully execute DELETE /repos/:user/:repo/keys/:id (deleteKey)", function(next) {
client.repos.deleteKey(
{
user: "String",
repo: "String",
collabuser: "String"
id: "String"
},

@@ -349,8 +346,8 @@ function(err, res) {

it("should successfully execute PUT /repos/:user/:repo/collaborators/:collabuser (addCollaborator)", function(next) {
client.repos.addCollaborator(
it("should successfully execute POST /repos/:user/:repo/forks (fork)", function(next) {
client.repos.fork(
{
user: "String",
repo: "String",
collabuser: "String"
organization: "String"
},

@@ -365,8 +362,7 @@ function(err, res) {

it("should successfully execute DELETE /repos/:user/:repo/collaborators/:collabuser (removeCollaborator)", function(next) {
client.repos.removeCollaborator(
it("should successfully execute GET /repos/:user/:repo (get)", function(next) {
client.repos.get(
{
user: "String",
repo: "String",
collabuser: "String"
repo: "String"
},

@@ -381,14 +377,10 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/commits (getCommits)", function(next) {
client.repos.getCommits(
it("should successfully execute GET /user/repos (getAll)", function(next) {
client.repos.getAll(
{
user: "String",
repo: "String",
sha: "String",
path: "String",
author: "String",
type: "String",
sort: "String",
direction: "String",
page: "Number",
per_page: "Number",
since: "Date",
until: "Date"
per_page: "Number"
},

@@ -403,8 +395,9 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/commits/:sha (getCommit)", function(next) {
client.repos.getCommit(
it("should successfully execute GET /repos/:user/:repo/comments (getAllCommitComments)", function(next) {
client.repos.getAllCommitComments(
{
user: "String",
repo: "String",
sha: "String"
page: "Number",
per_page: "Number"
},

@@ -419,9 +412,9 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/comments (getAllCommitComments)", function(next) {
client.repos.getAllCommitComments(
it("should successfully execute GET /repos/:user/:repo/:archive_format/:ref (getArchiveLink)", function(next) {
client.repos.getArchiveLink(
{
user: "String",
repo: "String",
page: "Number",
per_page: "Number"
ref: "String",
archive_format: "String"
},

@@ -436,8 +429,8 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/commits/:sha/comments (getCommitComments)", function(next) {
client.repos.getCommitComments(
it("should successfully execute GET /repos/:user/:repo/branches/:branch (getBranch)", function(next) {
client.repos.getBranch(
{
user: "String",
repo: "String",
sha: "String",
branch: "String",
page: "Number",

@@ -454,13 +447,9 @@ per_page: "Number"

it("should successfully execute POST /repos/:user/:repo/commits/:sha/comments (createCommitComment)", function(next) {
client.repos.createCommitComment(
it("should successfully execute GET /repos/:user/:repo/branches (getBranches)", function(next) {
client.repos.getBranches(
{
user: "String",
repo: "String",
sha: "String",
body: "String",
commit_id: "String",
path: "String",
position: "Number",
line: "Number"
page: "Number",
per_page: "Number"
},

@@ -475,8 +464,8 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/comments/:id (getCommitComment)", function(next) {
client.repos.getCommitComment(
it("should successfully execute GET /repos/:user/:repo/collaborators/:collabuser (getCollaborator)", function(next) {
client.repos.getCollaborator(
{
user: "String",
repo: "String",
id: "String"
collabuser: "String"
},

@@ -491,9 +480,9 @@ function(err, res) {

it("should successfully execute PATCH /repos/:user/:repo/comments/:id (updateCommitComment)", function(next) {
client.repos.updateCommitComment(
it("should successfully execute GET /repos/:user/:repo/collaborators (getCollaborators)", function(next) {
client.repos.getCollaborators(
{
user: "String",
repo: "String",
id: "String",
body: "String"
page: "Number",
per_page: "Number"
},

@@ -508,9 +497,8 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/compare/:base...:head (compareCommits)", function(next) {
client.repos.compareCommits(
it("should successfully execute GET /repos/:user/:repo/commits/:sha (getCommit)", function(next) {
client.repos.getCommit(
{
user: "String",
repo: "String",
base: "String",
head: "String"
sha: "String"
},

@@ -525,4 +513,4 @@ function(err, res) {

it("should successfully execute DELETE /repos/:user/:repo/comments/:id (deleteCommitComment)", function(next) {
client.repos.deleteCommitComment(
it("should successfully execute GET /repos/:user/:repo/comments/:id (getCommitComment)", function(next) {
client.repos.getCommitComment(
{

@@ -541,8 +529,10 @@ user: "String",

it("should successfully execute GET /repos/:user/:repo/readme (getReadme)", function(next) {
client.repos.getReadme(
it("should successfully execute GET /repos/:user/:repo/commits/:sha/comments (getCommitComments)", function(next) {
client.repos.getCommitComments(
{
user: "String",
repo: "String",
ref: "String"
sha: "String",
page: "Number",
per_page: "Number"
},

@@ -557,9 +547,14 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/contents/:path (getContent)", function(next) {
client.repos.getContent(
it("should successfully execute GET /repos/:user/:repo/commits (getCommits)", function(next) {
client.repos.getCommits(
{
user: "String",
repo: "String",
sha: "String",
path: "String",
ref: "String"
author: "String",
page: "Number",
per_page: "Number",
since: "Date",
until: "Date"
},

@@ -574,9 +569,7 @@ function(err, res) {

it("should successfully execute PUT /repos/:user/:repo/contents/:path (createContent)", function(next) {
client.repos.createContent(
it("should successfully execute GET /repos/:user/:repo/contents/:path (getContent)", function(next) {
client.repos.getContent(
{
user: "String",
repo: "String",
content: "String",
message: "String",
path: "String",

@@ -593,13 +586,10 @@ ref: "String"

it("should successfully execute PUT /repos/:user/:repo/contents/:path (createFile)", function(next) {
client.repos.createFile(
it("should successfully execute GET /repos/:user/:repo/contributors (getContributors)", function(next) {
client.repos.getContributors(
{
user: "String",
repo: "String",
path: "String",
message: "String",
content: "String",
branch: "String",
author: "Json",
committer: "Json"
anon: "Boolean",
page: "Number",
per_page: "Number"
},

@@ -614,14 +604,8 @@ function(err, res) {

it("should successfully execute PUT /repos/:user/:repo/contents/:path (updateFile)", function(next) {
client.repos.updateFile(
it("should successfully execute GET /repos/:user/:repo/deployments/:id/statuses (getDeploymentStatuses)", function(next) {
client.repos.getDeploymentStatuses(
{
user: "String",
repo: "String",
path: "String",
message: "String",
content: "String",
sha: "String",
branch: "String",
author: "Json",
committer: "Json"
id: "String"
},

@@ -636,13 +620,13 @@ function(err, res) {

it("should successfully execute DELETE /repos/:user/:repo/contents/:path (deleteFile)", function(next) {
client.repos.deleteFile(
it("should successfully execute GET /repos/:user/:repo/deployments (getDeployments)", function(next) {
client.repos.getDeployments(
{
sha: "String",
ref: "String",
task: "String",
environment: "String",
user: "String",
repo: "String",
path: "String",
message: "String",
sha: "String",
branch: "String",
author: "Json",
committer: "Json"
page: "Number",
per_page: "Number"
},

@@ -657,9 +641,8 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/:archive_format/:ref (getArchiveLink)", function(next) {
client.repos.getArchiveLink(
it("should successfully execute GET /repos/:user/:repo/downloads/:id (getDownload)", function(next) {
client.repos.getDownload(
{
user: "String",
repo: "String",
ref: "String",
archive_format: "String"
id: "String"
},

@@ -690,8 +673,10 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/downloads/:id (getDownload)", function(next) {
client.repos.getDownload(
it("should successfully execute GET /repos/:user/:repo/forks (getForks)", function(next) {
client.repos.getForks(
{
user: "String",
repo: "String",
id: "String"
sort: "String",
page: "Number",
per_page: "Number"
},

@@ -706,8 +691,9 @@ function(err, res) {

it("should successfully execute DELETE /repos/:user/:repo/downloads/:id (deleteDownload)", function(next) {
client.repos.deleteDownload(
it("should successfully execute GET /orgs/:org/repos (getFromOrg)", function(next) {
client.repos.getFromOrg(
{
user: "String",
repo: "String",
id: "String"
org: "String",
type: "String",
page: "Number",
per_page: "Number"
},

@@ -722,8 +708,9 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/forks (getForks)", function(next) {
client.repos.getForks(
it("should successfully execute GET /users/:user/repos (getFromUser)", function(next) {
client.repos.getFromUser(
{
user: "String",
repo: "String",
type: "String",
sort: "String",
direction: "String",
page: "Number",

@@ -740,8 +727,8 @@ per_page: "Number"

it("should successfully execute POST /repos/:user/:repo/forks (fork)", function(next) {
client.repos.fork(
it("should successfully execute GET /repos/:user/:repo/hooks/:id (getHook)", function(next) {
client.repos.getHook(
{
user: "String",
repo: "String",
organization: "String"
id: "String"
},

@@ -756,4 +743,4 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/keys (getKeys)", function(next) {
client.repos.getKeys(
it("should successfully execute GET /repos/:user/:repo/hooks (getHooks)", function(next) {
client.repos.getHooks(
{

@@ -788,9 +775,9 @@ user: "String",

it("should successfully execute POST /repos/:user/:repo/keys (createKey)", function(next) {
client.repos.createKey(
it("should successfully execute GET /repos/:user/:repo/keys (getKeys)", function(next) {
client.repos.getKeys(
{
user: "String",
repo: "String",
title: "String",
key: "String"
page: "Number",
per_page: "Number"
},

@@ -805,10 +792,9 @@ function(err, res) {

it("should successfully execute PUT /repos/:user/:repo/keys/:id (updateKey)", function(next) {
client.repos.updateKey(
it("should successfully execute GET /repos/:user/:repo/languages (getLanguages)", function(next) {
client.repos.getLanguages(
{
user: "String",
repo: "String",
id: "String",
title: "String",
key: "String"
page: "Number",
per_page: "Number"
},

@@ -823,8 +809,8 @@ function(err, res) {

it("should successfully execute DELETE /repos/:user/:repo/keys/:id (deleteKey)", function(next) {
client.repos.deleteKey(
it("should successfully execute GET /repos/:user/:repo/readme (getReadme)", function(next) {
client.repos.getReadme(
{
user: "String",
repo: "String",
id: "String"
ref: "String"
},

@@ -900,4 +886,4 @@ function(err, res) {

it("should successfully execute PUT /user/starred/:user/:repo (star)", function(next) {
client.repos.star(
it("should successfully execute GET /repos/:user/:repo/stats/code_frequency (getStatsCodeFrequency)", function(next) {
client.repos.getStatsCodeFrequency(
{

@@ -915,4 +901,4 @@ user: "String",

it("should successfully execute DELETE /user/starred/:user/:repo (unStar)", function(next) {
client.repos.unStar(
it("should successfully execute GET /repos/:user/:repo/stats/commit_activity (getStatsCommitActivity)", function(next) {
client.repos.getStatsCommitActivity(
{

@@ -930,9 +916,7 @@ user: "String",

it("should successfully execute GET /repos/:user/:repo/watchers (getWatchers)", function(next) {
client.repos.getWatchers(
it("should successfully execute GET /repos/:user/:repo/stats/contributors (getStatsContributors)", function(next) {
client.repos.getStatsContributors(
{
user: "String",
repo: "String",
page: "Number",
per_page: "Number"
repo: "String"
},

@@ -947,7 +931,7 @@ function(err, res) {

it("should successfully execute GET /user/watched (getWatched)", function(next) {
client.repos.getWatched(
it("should successfully execute GET /repos/:user/:repo/stats/participation (getStatsParticipation)", function(next) {
client.repos.getStatsParticipation(
{
page: "Number",
per_page: "Number"
user: "String",
repo: "String"
},

@@ -962,8 +946,7 @@ function(err, res) {

it("should successfully execute GET /users/:user/watched (getWatchedFromUser)", function(next) {
client.repos.getWatchedFromUser(
it("should successfully execute GET /repos/:user/:repo/stats/punch_card (getStatsPunchCard)", function(next) {
client.repos.getStatsPunchCard(
{
user: "String",
page: "Number",
per_page: "Number"
repo: "String"
},

@@ -978,4 +961,4 @@ function(err, res) {

it("should successfully execute GET /user/watched/:user/:repo (getWatching)", function(next) {
client.repos.getWatching(
it("should successfully execute GET /repos/:user/:repo/tags (getTags)", function(next) {
client.repos.getTags(
{

@@ -995,7 +978,9 @@ user: "String",

it("should successfully execute PUT /user/watched/:user/:repo (watch)", function(next) {
client.repos.watch(
it("should successfully execute GET /repos/:user/:repo/teams (getTeams)", function(next) {
client.repos.getTeams(
{
user: "String",
repo: "String"
repo: "String",
page: "Number",
per_page: "Number"
},

@@ -1010,7 +995,7 @@ function(err, res) {

it("should successfully execute DELETE /user/watched/:user/:repo (unWatch)", function(next) {
client.repos.unWatch(
it("should successfully execute GET /user/watched (getWatched)", function(next) {
client.repos.getWatched(
{
user: "String",
repo: "String"
page: "Number",
per_page: "Number"
},

@@ -1025,7 +1010,6 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/hooks (getHooks)", function(next) {
client.repos.getHooks(
it("should successfully execute GET /users/:user/watched (getWatchedFromUser)", function(next) {
client.repos.getWatchedFromUser(
{
user: "String",
repo: "String",
page: "Number",

@@ -1042,8 +1026,9 @@ per_page: "Number"

it("should successfully execute GET /repos/:user/:repo/hooks/:id (getHook)", function(next) {
client.repos.getHook(
it("should successfully execute GET /repos/:user/:repo/watchers (getWatchers)", function(next) {
client.repos.getWatchers(
{
user: "String",
repo: "String",
id: "String"
page: "Number",
per_page: "Number"
},

@@ -1058,11 +1043,9 @@ function(err, res) {

it("should successfully execute POST /repos/:user/:repo/hooks (createHook)", function(next) {
client.repos.createHook(
it("should successfully execute GET /user/watched/:user/:repo (getWatching)", function(next) {
client.repos.getWatching(
{
user: "String",
repo: "String",
name: "String",
config: "Json",
events: "Array",
active: "Boolean"
page: "Number",
per_page: "Number"
},

@@ -1077,14 +1060,10 @@ function(err, res) {

it("should successfully execute PATCH /repos/:user/:repo/hooks/:id (updateHook)", function(next) {
client.repos.updateHook(
it("should successfully execute POST /repos/:user/:repo/merges (merge)", function(next) {
client.repos.merge(
{
user: "String",
repo: "String",
id: "String",
name: "String",
config: "Json",
events: "Array",
add_events: "Array",
remove_events: "Array",
active: "Boolean"
base: "String",
head: "String",
commit_message: "String"
},

@@ -1099,7 +1078,5 @@ function(err, res) {

it("should successfully execute POST /repos/:user/:repo/hooks/:id/test (testHook)", function(next) {
client.repos.testHook(
it("should successfully execute GET /repositories/:id (one)", function(next) {
client.repos.one(
{
user: "String",
repo: "String",
id: "String"

@@ -1115,8 +1092,8 @@ },

it("should successfully execute DELETE /repos/:user/:repo/hooks/:id (deleteHook)", function(next) {
client.repos.deleteHook(
it("should successfully execute DELETE /repos/:user/:repo/collaborators/:collabuser (removeCollaborator)", function(next) {
client.repos.removeCollaborator(
{
user: "String",
repo: "String",
id: "String"
collabuser: "String"
},

@@ -1131,4 +1108,4 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/stats/contributors (getStatsContributors)", function(next) {
client.repos.getStatsContributors(
it("should successfully execute PUT /user/starred/:user/:repo (star)", function(next) {
client.repos.star(
{

@@ -1146,7 +1123,8 @@ user: "String",

it("should successfully execute GET /repos/:user/:repo/stats/commit_activity (getStatsCommitActivity)", function(next) {
client.repos.getStatsCommitActivity(
it("should successfully execute POST /repos/:user/:repo/hooks/:id/test (testHook)", function(next) {
client.repos.testHook(
{
user: "String",
repo: "String"
repo: "String",
id: "String"
},

@@ -1161,4 +1139,4 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/stats/code_frequency (getStatsCodeFrequency)", function(next) {
client.repos.getStatsCodeFrequency(
it("should successfully execute DELETE /user/starred/:user/:repo (unStar)", function(next) {
client.repos.unStar(
{

@@ -1176,4 +1154,4 @@ user: "String",

it("should successfully execute GET /repos/:user/:repo/stats/participation (getStatsParticipation)", function(next) {
client.repos.getStatsParticipation(
it("should successfully execute DELETE /user/watched/:user/:repo (unWatch)", function(next) {
client.repos.unWatch(
{

@@ -1191,7 +1169,15 @@ user: "String",

it("should successfully execute GET /repos/:user/:repo/stats/punch_card (getStatsPunchCard)", function(next) {
client.repos.getStatsPunchCard(
it("should successfully execute PATCH /repos/:user/:repo (update)", function(next) {
client.repos.update(
{
user: "String",
repo: "String"
repo: "String",
name: "String",
description: "String",
homepage: "String",
private: "Boolean",
has_issues: "Boolean",
has_wiki: "Boolean",
has_downloads: "Boolean",
default_branch: "String"
},

@@ -1206,13 +1192,9 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/deployments (getDeployments)", function(next) {
client.repos.getDeployments(
it("should successfully execute PATCH /repos/:user/:repo/comments/:id (updateCommitComment)", function(next) {
client.repos.updateCommitComment(
{
sha: "String",
ref: "String",
task: "String",
environment: "String",
user: "String",
repo: "String",
page: "Number",
per_page: "Number"
id: "String",
body: "String"
},

@@ -1227,14 +1209,14 @@ function(err, res) {

it("should successfully execute POST /repos/:user/:repo/deployments (createDeployment)", function(next) {
client.repos.createDeployment(
it("should successfully execute PUT /repos/:user/:repo/contents/:path (updateFile)", function(next) {
client.repos.updateFile(
{
ref: "String",
task: "String",
auto_merge: "Boolean",
required_contexts: "Array",
payload: "String",
environment: "String",
description: "String",
user: "String",
repo: "String"
repo: "String",
path: "String",
message: "String",
content: "String",
sha: "String",
branch: "String",
author: "Json",
committer: "Json"
},

@@ -1249,8 +1231,14 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/deployments/:id/statuses (getDeploymentStatuses)", function(next) {
client.repos.getDeploymentStatuses(
it("should successfully execute PATCH /repos/:user/:repo/hooks/:id (updateHook)", function(next) {
client.repos.updateHook(
{
user: "String",
repo: "String",
id: "String"
id: "String",
name: "String",
config: "Json",
events: "Array",
add_events: "Array",
remove_events: "Array",
active: "Boolean"
},

@@ -1265,11 +1253,10 @@ function(err, res) {

it("should successfully execute POST /repos/:user/:repo/deployments/:id/statuses (createDeploymentStatus)", function(next) {
client.repos.createDeploymentStatus(
it("should successfully execute PUT /repos/:user/:repo/keys/:id (updateKey)", function(next) {
client.repos.updateKey(
{
state: "String",
target_url: "String",
description: "String",
user: "String",
repo: "String",
id: "String"
id: "String",
title: "String",
key: "String"
},

@@ -1283,2 +1270,16 @@ function(err, res) {

});
it("should successfully execute PUT /user/watched/:user/:repo (watch)", function(next) {
client.repos.watch(
{
user: "String",
repo: "String"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
});

@@ -14,6 +14,7 @@ /*

var Client = require("./../../index");
var testAuth = require("./../test_auth.json");
describe("[search]", function() {
var client;
var token = "c286e38330e15246a640c2cf32a45ea45d93b2ba";
var token = testAuth["token"];

@@ -45,2 +46,15 @@ beforeEach(function() {

it("should successfully execute GET /legacy/user/email/:email (email)", function(next) {
client.search.email(
{
email: "String"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute GET /search/issues (issues)", function(next) {

@@ -96,15 +110,2 @@ client.search.issues(

});
it("should successfully execute GET /legacy/user/email/:email (email)", function(next) {
client.search.email(
{
email: "String"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
});

@@ -14,6 +14,7 @@ /*

var Client = require("./../../index");
var testAuth = require("./../test_auth.json");
describe("[statuses]", function() {
var client;
var token = "c286e38330e15246a640c2cf32a45ea45d93b2ba";
var token = testAuth["token"];

@@ -28,8 +29,12 @@ beforeEach(function() {

it("should successfully execute GET /repos/:user/:repo/commits/:sha/statuses (get)", function(next) {
client.statuses.get(
it("should successfully execute POST /repos/:user/:repo/statuses/:sha (create)", function(next) {
client.statuses.create(
{
user: "String",
repo: "String",
sha: "String"
sha: "String",
state: "String",
target_url: "String",
description: "String",
context: "String"
},

@@ -44,4 +49,4 @@ function(err, res) {

it("should successfully execute GET /repos/:user/:repo/commits/:sha/status (getCombined)", function(next) {
client.statuses.getCombined(
it("should successfully execute GET /repos/:user/:repo/commits/:sha/statuses (get)", function(next) {
client.statuses.get(
{

@@ -60,12 +65,8 @@ user: "String",

it("should successfully execute POST /repos/:user/:repo/statuses/:sha (create)", function(next) {
client.statuses.create(
it("should successfully execute GET /repos/:user/:repo/commits/:sha/status (getCombined)", function(next) {
client.statuses.getCombined(
{
user: "String",
repo: "String",
sha: "String",
state: "String",
target_url: "String",
description: "String",
context: "String"
sha: "String"
},

@@ -72,0 +73,0 @@ function(err, res) {

@@ -14,6 +14,7 @@ /*

var Client = require("./../../index");
var testAuth = require("./../test_auth.json");
describe("[user]", function() {
var client;
var token = "c286e38330e15246a640c2cf32a45ea45d93b2ba";
var token = testAuth["token"];

@@ -28,7 +29,5 @@ beforeEach(function() {

it("should successfully execute GET /users (getAll)", function(next) {
client.user.getAll(
{
since: "Number"
},
it("should successfully execute POST /user/emails (addEmails)", function(next) {
client.user.addEmails(
{},
function(err, res) {

@@ -42,6 +41,7 @@ Assert.equal(err, null);

it("should successfully execute GET /users/:user (getFrom)", function(next) {
client.user.getFrom(
it("should successfully execute POST /user/keys (createKey)", function(next) {
client.user.createKey(
{
user: "String"
title: "String",
key: "String"
},

@@ -56,4 +56,4 @@ function(err, res) {

it("should successfully execute GET /user (get)", function(next) {
client.user.get(
it("should successfully execute DELETE /user/emails (deleteEmails)", function(next) {
client.user.deleteEmails(
{},

@@ -68,12 +68,6 @@ function(err, res) {

it("should successfully execute PATCH /user (update)", function(next) {
client.user.update(
it("should successfully execute DELETE /user/keys/:id (deleteKey)", function(next) {
client.user.deleteKey(
{
name: "String",
email: "String",
blog: "String",
company: "String",
location: "String",
hireable: "Boolean",
bio: "String"
id: "String"
},

@@ -88,16 +82,2 @@ function(err, res) {

it("should successfully execute GET /user/orgs (getOrgs)", function(next) {
client.user.getOrgs(
{
page: "Number",
per_page: "Number"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute PATCH /user/memberships/orgs/:org (editOrganizationMembership)", function(next) {

@@ -117,7 +97,6 @@ client.user.editOrganizationMembership(

it("should successfully execute GET /user/teams (getTeams)", function(next) {
client.user.getTeams(
it("should successfully execute PUT /user/following/:user (followUser)", function(next) {
client.user.followUser(
{
page: "Number",
per_page: "Number"
user: "String"
},

@@ -132,8 +111,5 @@ function(err, res) {

it("should successfully execute GET /user/emails (getEmails)", function(next) {
client.user.getEmails(
{
page: "Number",
per_page: "Number"
},
it("should successfully execute GET /user (get)", function(next) {
client.user.get(
{},
function(err, res) {

@@ -147,5 +123,7 @@ Assert.equal(err, null);

it("should successfully execute POST /user/emails (addEmails)", function(next) {
client.user.addEmails(
{},
it("should successfully execute GET /users (getAll)", function(next) {
client.user.getAll(
{
since: "Number"
},
function(err, res) {

@@ -159,5 +137,8 @@ Assert.equal(err, null);

it("should successfully execute DELETE /user/emails (deleteEmails)", function(next) {
client.user.deleteEmails(
{},
it("should successfully execute GET /user/emails (getEmails)", function(next) {
client.user.getEmails(
{
page: "Number",
per_page: "Number"
},
function(err, res) {

@@ -171,4 +152,4 @@ Assert.equal(err, null);

it("should successfully execute GET /users/:user/followers (getFollowers)", function(next) {
client.user.getFollowers(
it("should successfully execute GET /user/following/:user (getFollowUser)", function(next) {
client.user.getFollowUser(
{

@@ -187,4 +168,4 @@ user: "String",

it("should successfully execute GET /users/:user/following (getFollowingFromUser)", function(next) {
client.user.getFollowingFromUser(
it("should successfully execute GET /users/:user/followers (getFollowers)", function(next) {
client.user.getFollowers(
{

@@ -217,4 +198,4 @@ user: "String",

it("should successfully execute GET /user/following/:user (getFollowUser)", function(next) {
client.user.getFollowUser(
it("should successfully execute GET /users/:user/following (getFollowingFromUser)", function(next) {
client.user.getFollowingFromUser(
{

@@ -233,4 +214,4 @@ user: "String",

it("should successfully execute PUT /user/following/:user (followUser)", function(next) {
client.user.followUser(
it("should successfully execute GET /users/:user (getFrom)", function(next) {
client.user.getFrom(
{

@@ -247,6 +228,6 @@ user: "String"

it("should successfully execute DELETE /user/following/:user (unFollowUser)", function(next) {
client.user.unFollowUser(
it("should successfully execute GET /user/keys/:id (getKey)", function(next) {
client.user.getKey(
{
user: "String"
id: "String"
},

@@ -290,6 +271,7 @@ function(err, res) {

it("should successfully execute GET /user/keys/:id (getKey)", function(next) {
client.user.getKey(
it("should successfully execute GET /user/orgs (getOrgs)", function(next) {
client.user.getOrgs(
{
id: "String"
page: "Number",
per_page: "Number"
},

@@ -304,7 +286,7 @@ function(err, res) {

it("should successfully execute POST /user/keys (createKey)", function(next) {
client.user.createKey(
it("should successfully execute GET /user/teams (getTeams)", function(next) {
client.user.getTeams(
{
title: "String",
key: "String"
page: "Number",
per_page: "Number"
},

@@ -319,8 +301,6 @@ function(err, res) {

it("should successfully execute PATCH /user/keys/:id (updateKey)", function(next) {
client.user.updateKey(
it("should successfully execute DELETE /user/following/:user (unFollowUser)", function(next) {
client.user.unFollowUser(
{
id: "String",
title: "String",
key: "String"
user: "String"
},

@@ -335,6 +315,12 @@ function(err, res) {

it("should successfully execute DELETE /user/keys/:id (deleteKey)", function(next) {
client.user.deleteKey(
it("should successfully execute PATCH /user (update)", function(next) {
client.user.update(
{
id: "String"
name: "String",
email: "String",
blog: "String",
company: "String",
location: "String",
hireable: "Boolean",
bio: "String"
},

@@ -348,2 +334,17 @@ function(err, res) {

});
it("should successfully execute PATCH /user/keys/:id (updateKey)", function(next) {
client.user.updateKey(
{
id: "String",
title: "String",
key: "String"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
});

Sorry, the diff of this file is not supported yet

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