Comparing version 0.3.0 to 0.4.0
{ | ||
"name": "github4", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "NodeJS wrapper for the GitHub API", | ||
@@ -5,0 +5,0 @@ "author": "Mike de Boer <info@mikedeboer.nl>", |
@@ -58,3 +58,3 @@ ##### 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.users.getFollowingFromUser({ | ||
github.users.getFollowingForUser({ | ||
// optional: | ||
@@ -61,0 +61,0 @@ // headers: { |
@@ -292,4 +292,4 @@ /* | ||
it("should successfully execute DELETE /gists/:id/star (unStar)", function(next) { | ||
client.gists.unStar( | ||
it("should successfully execute DELETE /gists/:id/star (unstar)", function(next) { | ||
client.gists.unstar( | ||
{ | ||
@@ -296,0 +296,0 @@ id: "String" |
@@ -47,3 +47,4 @@ /* | ||
id: "String", | ||
user: "String" | ||
user: "String", | ||
role: "String" | ||
}, | ||
@@ -153,3 +154,4 @@ function(err, res) { | ||
description: "String", | ||
repo_names: "Array" | ||
repo_names: "Array", | ||
privacy: "String" | ||
}, | ||
@@ -178,2 +180,16 @@ function(err, res) { | ||
it("should successfully execute DELETE /orgs/:org/migrations/:id/archive (deleteMigrationArchive)", function(next) { | ||
client.orgs.deleteMigrationArchive( | ||
{ | ||
org: "String", | ||
id: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute DELETE /teams/:id (deleteTeam)", function(next) { | ||
@@ -229,3 +245,4 @@ client.orgs.deleteTeam( | ||
name: "String", | ||
description: "String" | ||
description: "String", | ||
privacy: "String" | ||
}, | ||
@@ -258,2 +275,3 @@ function(err, res) { | ||
{ | ||
since: "String", | ||
page: "Number", | ||
@@ -318,5 +336,6 @@ per_page: "Number" | ||
org: "String", | ||
filter: "String", | ||
role: "String", | ||
page: "Number", | ||
per_page: "Number", | ||
filter: "String" | ||
per_page: "Number" | ||
}, | ||
@@ -331,2 +350,45 @@ function(err, res) { | ||
it("should successfully execute GET /orgs/:org/migrations/:id/archive (getMigrationArchiveLink)", function(next) { | ||
client.orgs.getMigrationArchiveLink( | ||
{ | ||
org: "String", | ||
id: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute GET /orgs/:org/migrations/:id (getMigrationStatus)", function(next) { | ||
client.orgs.getMigrationStatus( | ||
{ | ||
org: "String", | ||
id: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute GET /orgs/:org/migrations (getMigrations)", function(next) { | ||
client.orgs.getMigrations( | ||
{ | ||
org: "String", | ||
page: "Number", | ||
per_page: "Number" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute GET /orgs/:org/memberships/:user (getOrganizationMembership)", function(next) { | ||
@@ -389,2 +451,3 @@ client.orgs.getOrganizationMembership( | ||
id: "String", | ||
role: "String", | ||
page: "Number", | ||
@@ -515,2 +578,33 @@ per_page: "Number" | ||
it("should successfully execute POST /orgs/:org/migrations (startMigration)", function(next) { | ||
client.orgs.startMigration( | ||
{ | ||
org: "String", | ||
repositories: "Array", | ||
lock_repositories: "Boolean", | ||
exclude_attachments: "Boolean" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute DELETE /orgs/:org/migrations/:id/repos/:repo/lock (unlockRepoLockedForMigration)", function(next) { | ||
client.orgs.unlockRepoLockedForMigration( | ||
{ | ||
org: "String", | ||
id: "String", | ||
repo: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute PATCH /orgs/:org (update)", function(next) { | ||
@@ -517,0 +611,0 @@ client.orgs.update( |
@@ -43,2 +43,17 @@ /* | ||
it("should successfully execute GET /repos/:user/:repo/collaborators/:collabuser (checkCollaborator)", function(next) { | ||
client.repos.checkCollaborator( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
collabuser: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute GET /repos/:user/:repo/compare/:base...:head (compareCommits)", function(next) { | ||
@@ -71,3 +86,4 @@ client.repos.compareCommits( | ||
auto_init: "Boolean", | ||
gitignore_template: "String" | ||
gitignore_template: "String", | ||
license_template: "String" | ||
}, | ||
@@ -89,3 +105,2 @@ function(err, res) { | ||
body: "String", | ||
commit_id: "String", | ||
path: "String", | ||
@@ -103,23 +118,7 @@ position: "Number", | ||
it("should successfully execute PUT /repos/:user/:repo/contents/:path (createContent)", function(next) { | ||
client.repos.createContent( | ||
it("should successfully execute POST /repos/:user/:repo/deployments (createDeployment)", function(next) { | ||
client.repos.createDeployment( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
content: "String", | ||
message: "String", | ||
path: "String", | ||
ref: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute POST /repos/:user/:repo/deployments (createDeployment)", function(next) { | ||
client.repos.createDeployment( | ||
{ | ||
ref: "String", | ||
@@ -131,5 +130,3 @@ task: "String", | ||
environment: "String", | ||
description: "String", | ||
user: "String", | ||
repo: "String" | ||
description: "String" | ||
}, | ||
@@ -147,8 +144,8 @@ function(err, res) { | ||
{ | ||
user: "String", | ||
repo: "String", | ||
id: "String", | ||
state: "String", | ||
target_url: "String", | ||
description: "String", | ||
user: "String", | ||
repo: "String", | ||
id: "String" | ||
description: "String" | ||
}, | ||
@@ -172,3 +169,2 @@ function(err, res) { | ||
branch: "String", | ||
author: "Json", | ||
committer: "Json" | ||
@@ -184,4 +180,4 @@ }, | ||
it("should successfully execute POST /orgs/:org/repos (createFromOrg)", function(next) { | ||
client.repos.createFromOrg( | ||
it("should successfully execute POST /orgs/:org/repos (createForOrg)", function(next) { | ||
client.repos.createForOrg( | ||
{ | ||
@@ -196,5 +192,6 @@ org: "String", | ||
has_downloads: "Boolean", | ||
team_id: "Number", | ||
auto_init: "Boolean", | ||
gitignore_template: "String", | ||
team_id: "Number" | ||
license_template: "String" | ||
}, | ||
@@ -233,3 +230,4 @@ function(err, res) { | ||
title: "String", | ||
key: "String" | ||
key: "String", | ||
read_only: "Boolean" | ||
}, | ||
@@ -244,2 +242,41 @@ function(err, res) { | ||
it("should successfully execute POST /repos/:user/:repo/releases (createRelease)", function(next) { | ||
client.repos.createRelease( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
tag_name: "String", | ||
target_commitish: "String", | ||
name: "String", | ||
body: "String", | ||
draft: "Boolean", | ||
prerelease: "Boolean" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute POST /repos/:user/:repo/statuses/:sha (createStatus)", function(next) { | ||
client.repos.createStatus( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
sha: "String", | ||
state: "String", | ||
target_url: "String", | ||
description: "String", | ||
context: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute DELETE /repos/:user/:repo (delete)", function(next) { | ||
@@ -259,2 +296,17 @@ client.repos.delete( | ||
it("should successfully execute DELETE /repos/:user/:repo/releases/assets/:id (deleteAsset)", function(next) { | ||
client.repos.deleteAsset( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
id: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute DELETE /repos/:user/:repo/comments/:id (deleteCommitComment)", function(next) { | ||
@@ -299,3 +351,2 @@ client.repos.deleteCommitComment( | ||
branch: "String", | ||
author: "Json", | ||
committer: "Json" | ||
@@ -341,2 +392,98 @@ }, | ||
it("should successfully execute DELETE /repos/:user/:repo/releases/:id (deleteRelease)", function(next) { | ||
client.repos.deleteRelease( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
id: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute PATCH /repos/:user/:repo (edit)", function(next) { | ||
client.repos.edit( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
name: "String", | ||
description: "String", | ||
homepage: "String", | ||
private: "Boolean", | ||
has_issues: "Boolean", | ||
has_wiki: "Boolean", | ||
has_downloads: "Boolean", | ||
default_branch: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute PATCH /repos/:user/:repo/releases/assets/:id (editAsset)", function(next) { | ||
client.repos.editAsset( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
id: "String", | ||
name: "String", | ||
label: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute PATCH /repos/:user/:repo/hooks/:id (editHook)", function(next) { | ||
client.repos.editHook( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
id: "String", | ||
name: "String", | ||
config: "Json", | ||
events: "Array", | ||
add_events: "Array", | ||
remove_events: "Array", | ||
active: "Boolean" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute PATCH /repos/:user/:repo/releases/:id (editRelease)", function(next) { | ||
client.repos.editRelease( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
id: "String", | ||
tag_name: "String", | ||
target_commitish: "String", | ||
name: "String", | ||
body: "String", | ||
draft: "Boolean", | ||
prerelease: "Boolean" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute POST /repos/:user/:repo/forks (fork)", function(next) { | ||
@@ -374,2 +521,4 @@ client.repos.fork( | ||
{ | ||
visibility: "String", | ||
affiliation: "String", | ||
type: "String", | ||
@@ -410,4 +559,4 @@ sort: "String", | ||
repo: "String", | ||
ref: "String", | ||
archive_format: "String" | ||
archive_format: "String", | ||
ref: "String" | ||
}, | ||
@@ -422,2 +571,17 @@ function(err, res) { | ||
it("should successfully execute GET /repos/:user/:repo/releases/assets/:id (getAsset)", function(next) { | ||
client.repos.getAsset( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
id: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute GET /repos/:user/:repo/branches/:branch (getBranch)", function(next) { | ||
@@ -456,8 +620,9 @@ client.repos.getBranch( | ||
it("should successfully execute GET /repos/:user/:repo/collaborators/:collabuser (getCollaborator)", function(next) { | ||
client.repos.getCollaborator( | ||
it("should successfully execute GET /repos/:user/:repo/collaborators (getCollaborators)", function(next) { | ||
client.repos.getCollaborators( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
collabuser: "String" | ||
page: "Number", | ||
per_page: "Number" | ||
}, | ||
@@ -472,9 +637,8 @@ function(err, res) { | ||
it("should successfully execute GET /repos/:user/:repo/collaborators (getCollaborators)", function(next) { | ||
client.repos.getCollaborators( | ||
it("should successfully execute GET /repos/:user/:repo/commits/:sha/status (getCombinedStatus)", function(next) { | ||
client.repos.getCombinedStatus( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
page: "Number", | ||
per_page: "Number" | ||
sha: "String" | ||
}, | ||
@@ -544,6 +708,6 @@ function(err, res) { | ||
author: "String", | ||
since: "Date", | ||
until: "Date", | ||
page: "Number", | ||
per_page: "Number", | ||
since: "Date", | ||
until: "Date" | ||
per_page: "Number" | ||
}, | ||
@@ -609,2 +773,4 @@ function(err, res) { | ||
{ | ||
user: "String", | ||
repo: "String", | ||
sha: "String", | ||
@@ -614,4 +780,2 @@ ref: "String", | ||
environment: "String", | ||
user: "String", | ||
repo: "String", | ||
page: "Number", | ||
@@ -659,8 +823,7 @@ per_page: "Number" | ||
it("should successfully execute GET /repos/:user/:repo/forks (getForks)", function(next) { | ||
client.repos.getForks( | ||
it("should successfully execute GET /orgs/:org/repos (getForOrg)", function(next) { | ||
client.repos.getForOrg( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
sort: "String", | ||
org: "String", | ||
type: "String", | ||
page: "Number", | ||
@@ -677,7 +840,9 @@ per_page: "Number" | ||
it("should successfully execute GET /orgs/:org/repos (getFromOrg)", function(next) { | ||
client.repos.getFromOrg( | ||
it("should successfully execute GET /users/:user/repos (getForUser)", function(next) { | ||
client.repos.getForUser( | ||
{ | ||
org: "String", | ||
user: "String", | ||
type: "String", | ||
sort: "String", | ||
direction: "String", | ||
page: "Number", | ||
@@ -694,9 +859,8 @@ per_page: "Number" | ||
it("should successfully execute GET /users/:user/repos (getFromUser)", function(next) { | ||
client.repos.getFromUser( | ||
it("should successfully execute GET /repos/:user/:repo/forks (getForks)", function(next) { | ||
client.repos.getForks( | ||
{ | ||
user: "String", | ||
type: "String", | ||
repo: "String", | ||
sort: "String", | ||
direction: "String", | ||
page: "Number", | ||
@@ -791,8 +955,7 @@ per_page: "Number" | ||
it("should successfully execute GET /repos/:user/:repo/readme (getReadme)", function(next) { | ||
client.repos.getReadme( | ||
it("should successfully execute GET /repos/:user/:repo/pages/builds/latest (getLatestPagesBuild)", function(next) { | ||
client.repos.getLatestPagesBuild( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
ref: "String" | ||
repo: "String" | ||
}, | ||
@@ -807,9 +970,7 @@ function(err, res) { | ||
it("should successfully execute GET /repos/:user/:repo/stargazers (getStargazers)", function(next) { | ||
client.repos.getStargazers( | ||
it("should successfully execute GET /repos/:user/:repo/releases/latest (getLatestRelease)", function(next) { | ||
client.repos.getLatestRelease( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
page: "Number", | ||
per_page: "Number" | ||
repo: "String" | ||
}, | ||
@@ -824,5 +985,7 @@ function(err, res) { | ||
it("should successfully execute GET /user/starred (getStarred)", function(next) { | ||
client.repos.getStarred( | ||
it("should successfully execute GET /repos/:user/:repo/pages (getPages)", function(next) { | ||
client.repos.getPages( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
page: "Number", | ||
@@ -839,6 +1002,7 @@ per_page: "Number" | ||
it("should successfully execute GET /users/:user/starred (getStarredFromUser)", function(next) { | ||
client.repos.getStarredFromUser( | ||
it("should successfully execute GET /repos/:user/:repo/pages/builds (getPagesBuilds)", function(next) { | ||
client.repos.getPagesBuilds( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
page: "Number", | ||
@@ -855,9 +1019,7 @@ per_page: "Number" | ||
it("should successfully execute GET /user/starred/:user/:repo (getStarring)", function(next) { | ||
client.repos.getStarring( | ||
it("should successfully execute GET /repositories (getPublic)", function(next) { | ||
client.repos.getPublic( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
page: "Number", | ||
per_page: "Number" | ||
org: "String", | ||
since: "String" | ||
}, | ||
@@ -872,7 +1034,8 @@ function(err, res) { | ||
it("should successfully execute GET /repos/:user/:repo/stats/code_frequency (getStatsCodeFrequency)", function(next) { | ||
client.repos.getStatsCodeFrequency( | ||
it("should successfully execute GET /repos/:user/:repo/readme (getReadme)", function(next) { | ||
client.repos.getReadme( | ||
{ | ||
user: "String", | ||
repo: "String" | ||
repo: "String", | ||
ref: "String" | ||
}, | ||
@@ -887,7 +1050,8 @@ function(err, res) { | ||
it("should successfully execute GET /repos/:user/:repo/stats/commit_activity (getStatsCommitActivity)", function(next) { | ||
client.repos.getStatsCommitActivity( | ||
it("should successfully execute GET /repos/:user/:repo/releases/:id (getRelease)", function(next) { | ||
client.repos.getRelease( | ||
{ | ||
user: "String", | ||
repo: "String" | ||
repo: "String", | ||
id: "String" | ||
}, | ||
@@ -902,7 +1066,8 @@ function(err, res) { | ||
it("should successfully execute GET /repos/:user/:repo/stats/contributors (getStatsContributors)", function(next) { | ||
client.repos.getStatsContributors( | ||
it("should successfully execute GET /repos/:user/:repo/releases/tags/:tag (getReleaseByTag)", function(next) { | ||
client.repos.getReleaseByTag( | ||
{ | ||
user: "String", | ||
repo: "String" | ||
repo: "String", | ||
tag: "String" | ||
}, | ||
@@ -917,7 +1082,9 @@ function(err, res) { | ||
it("should successfully execute GET /repos/:user/:repo/stats/participation (getStatsParticipation)", function(next) { | ||
client.repos.getStatsParticipation( | ||
it("should successfully execute GET /repos/:user/:repo/releases (getReleases)", function(next) { | ||
client.repos.getReleases( | ||
{ | ||
user: "String", | ||
repo: "String" | ||
repo: "String", | ||
page: "Number", | ||
per_page: "Number" | ||
}, | ||
@@ -932,4 +1099,4 @@ function(err, res) { | ||
it("should successfully execute GET /repos/:user/:repo/stats/punch_card (getStatsPunchCard)", function(next) { | ||
client.repos.getStatsPunchCard( | ||
it("should successfully execute GET /repos/:user/:repo/stats/code_frequency (getStatsCodeFrequency)", function(next) { | ||
client.repos.getStatsCodeFrequency( | ||
{ | ||
@@ -947,9 +1114,7 @@ user: "String", | ||
it("should successfully execute GET /repos/:user/:repo/tags (getTags)", function(next) { | ||
client.repos.getTags( | ||
it("should successfully execute GET /repos/:user/:repo/stats/commit_activity (getStatsCommitActivity)", function(next) { | ||
client.repos.getStatsCommitActivity( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
page: "Number", | ||
per_page: "Number" | ||
repo: "String" | ||
}, | ||
@@ -964,9 +1129,7 @@ function(err, res) { | ||
it("should successfully execute GET /repos/:user/:repo/teams (getTeams)", function(next) { | ||
client.repos.getTeams( | ||
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" | ||
}, | ||
@@ -981,7 +1144,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" | ||
}, | ||
@@ -996,8 +1159,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" | ||
}, | ||
@@ -1012,9 +1174,8 @@ function(err, res) { | ||
it("should successfully execute GET /repos/:user/:repo/watchers (getWatchers)", function(next) { | ||
client.repos.getWatchers( | ||
it("should successfully execute GET /repos/:user/:repo/commits/:sha/statuses (getStatuses)", function(next) { | ||
client.repos.getStatuses( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
page: "Number", | ||
per_page: "Number" | ||
sha: "String" | ||
}, | ||
@@ -1029,4 +1190,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( | ||
{ | ||
@@ -1046,10 +1207,9 @@ user: "String", | ||
it("should successfully execute POST /repos/:user/:repo/merges (merge)", function(next) { | ||
client.repos.merge( | ||
it("should successfully execute GET /repos/:user/:repo/teams (getTeams)", function(next) { | ||
client.repos.getTeams( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
base: "String", | ||
head: "String", | ||
commit_message: "String" | ||
page: "Number", | ||
per_page: "Number" | ||
}, | ||
@@ -1064,5 +1224,7 @@ function(err, res) { | ||
it("should successfully execute GET /repositories/:id (one)", function(next) { | ||
client.repos.one( | ||
it("should successfully execute GET /repos/:user/:repo/releases/:id/assets (listAssets)", function(next) { | ||
client.repos.listAssets( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
id: "String" | ||
@@ -1078,8 +1240,10 @@ }, | ||
it("should successfully execute DELETE /repos/:user/:repo/collaborators/:collabuser (removeCollaborator)", function(next) { | ||
client.repos.removeCollaborator( | ||
it("should successfully execute POST /repos/:user/:repo/merges (merge)", function(next) { | ||
client.repos.merge( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
collabuser: "String" | ||
base: "String", | ||
head: "String", | ||
commit_message: "String" | ||
}, | ||
@@ -1094,7 +1258,6 @@ function(err, res) { | ||
it("should successfully execute PUT /user/starred/:user/:repo (star)", function(next) { | ||
client.repos.star( | ||
it("should successfully execute GET /repositories/:id (one)", function(next) { | ||
client.repos.one( | ||
{ | ||
user: "String", | ||
repo: "String" | ||
id: "String" | ||
}, | ||
@@ -1109,4 +1272,4 @@ function(err, res) { | ||
it("should successfully execute POST /repos/:user/:repo/hooks/:id/test (testHook)", function(next) { | ||
client.repos.testHook( | ||
it("should successfully execute POST /repos/:user/:repo/hooks/:id/pings (pingHook)", function(next) { | ||
client.repos.pingHook( | ||
{ | ||
@@ -1125,7 +1288,8 @@ user: "String", | ||
it("should successfully execute DELETE /user/starred/:user/:repo (unStar)", function(next) { | ||
client.repos.unStar( | ||
it("should successfully execute DELETE /repos/:user/:repo/collaborators/:collabuser (removeCollaborator)", function(next) { | ||
client.repos.removeCollaborator( | ||
{ | ||
user: "String", | ||
repo: "String" | ||
repo: "String", | ||
collabuser: "String" | ||
}, | ||
@@ -1140,29 +1304,8 @@ function(err, res) { | ||
it("should successfully execute DELETE /user/watched/:user/:repo (unWatch)", function(next) { | ||
client.repos.unWatch( | ||
it("should successfully execute POST /repos/:user/:repo/hooks/:id/test (testHook)", function(next) { | ||
client.repos.testHook( | ||
{ | ||
user: "String", | ||
repo: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute PATCH /repos/:user/:repo (update)", function(next) { | ||
client.repos.update( | ||
{ | ||
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" | ||
}, | ||
@@ -1203,3 +1346,2 @@ function(err, res) { | ||
branch: "String", | ||
author: "Json", | ||
committer: "Json" | ||
@@ -1215,4 +1357,4 @@ }, | ||
it("should successfully execute PATCH /repos/:user/:repo/hooks/:id (updateHook)", function(next) { | ||
client.repos.updateHook( | ||
it("should successfully execute POST /repos/:user/:repo/releases/:id/assets (uploadAsset)", function(next) { | ||
client.repos.uploadAsset( | ||
{ | ||
@@ -1223,7 +1365,3 @@ user: "String", | ||
name: "String", | ||
config: "Json", | ||
events: "Array", | ||
add_events: "Array", | ||
remove_events: "Array", | ||
active: "Boolean" | ||
label: "String" | ||
}, | ||
@@ -1237,33 +1375,2 @@ function(err, res) { | ||
}); | ||
it("should successfully execute PUT /repos/:user/:repo/keys/:id (updateKey)", function(next) { | ||
client.repos.updateKey( | ||
{ | ||
user: "String", | ||
repo: "String", | ||
id: "String", | ||
title: "String", | ||
key: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
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(); | ||
} | ||
); | ||
}); | ||
}); |
@@ -227,4 +227,4 @@ /* | ||
it("should successfully execute GET /users/:user (getFor)", function(next) { | ||
client.users.getFor( | ||
it("should successfully execute GET /users/:user (getForUser)", function(next) { | ||
client.users.getForUser( | ||
{ | ||
@@ -324,4 +324,4 @@ user: "String" | ||
it("should successfully execute DELETE /user/following/:user (unFollowUser)", function(next) { | ||
client.users.unFollowUser( | ||
it("should successfully execute DELETE /user/following/:user (unfollowUser)", function(next) { | ||
client.users.unfollowUser( | ||
{ | ||
@@ -328,0 +328,0 @@ user: "String" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
471319
13508
25