UNPKG

github

Version:
1,613 lines (1,499 loc) 931 kB
/** * @api {get} /notifications/threads/:id/subscription checkNotificationThreadSubscription * @apiVersion 5.0.0 * @apiName checkNotificationThreadSubscription * @apiDescription Check to see if the current user is subscribed to a thread. * @apiGroup activity * * @apiParam {String} id * @apiExample {js} ex: github.activity.checkNotificationThreadSubscription({ ... }); */ /** * @api {get} /user/starred/:owner/:repo checkStarringRepo * @apiVersion 5.0.0 * @apiName checkStarringRepo * @apiDescription Check if you are starring a repository * @apiGroup activity * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.activity.checkStarringRepo({ ... }); */ /** * @api {delete} /notifications/threads/:id/subscription deleteNotificationThreadSubscription * @apiVersion 5.0.0 * @apiName deleteNotificationThreadSubscription * @apiDescription Delete a notification thread subscription. * @apiGroup activity * * @apiParam {String} id * @apiExample {js} ex: github.activity.deleteNotificationThreadSubscription({ ... }); */ /** * @api {get} /events getEvents * @apiVersion 5.0.0 * @apiName getEvents * @apiDescription List public events * @apiGroup activity * * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.activity.getEvents({ ... }); */ /** * @api {get} /orgs/:org/events getEventsForOrg * @apiVersion 5.0.0 * @apiName getEventsForOrg * @apiDescription List public events for an organization * @apiGroup activity * * @apiParam {String} org * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.activity.getEventsForOrg({ ... }); */ /** * @api {get} /repos/:owner/:repo/events getEventsForRepo * @apiVersion 5.0.0 * @apiName getEventsForRepo * @apiDescription List repository events * @apiGroup activity * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.activity.getEventsForRepo({ ... }); */ /** * @api {get} /repos/:owner/:repo/issues/events getEventsForRepoIssues * @apiVersion 5.0.0 * @apiName getEventsForRepoIssues * @apiDescription List issue events for a repository * @apiGroup activity * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.activity.getEventsForRepoIssues({ ... }); */ /** * @api {get} /networks/:owner/:repo/events getEventsForRepoNetwork * @apiVersion 5.0.0 * @apiName getEventsForRepoNetwork * @apiDescription List public events for a network of repositories * @apiGroup activity * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.activity.getEventsForRepoNetwork({ ... }); */ /** * @api {get} /users/:owner/events getEventsForUser * @apiVersion 5.0.0 * @apiName getEventsForUser * @apiDescription List events performed by a user * @apiGroup activity * * @apiParam {String} owner * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.activity.getEventsForUser({ ... }); */ /** * @api {get} /users/:owner/events/orgs/:org getEventsForUserOrg * @apiVersion 5.0.0 * @apiName getEventsForUserOrg * @apiDescription List events for a user's organization * @apiGroup activity * * @apiParam {String} owner * @apiParam {String} org * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.activity.getEventsForUserOrg({ ... }); */ /** * @api {get} /users/:owner/events/public getEventsForUserPublic * @apiVersion 5.0.0 * @apiName getEventsForUserPublic * @apiDescription List public events performed by a user * @apiGroup activity * * @apiParam {String} owner * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.activity.getEventsForUserPublic({ ... }); */ /** * @api {get} /users/:owner/received_events getEventsReceived * @apiVersion 5.0.0 * @apiName getEventsReceived * @apiDescription List events that a user has received * @apiGroup activity * * @apiParam {String} owner * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.activity.getEventsReceived({ ... }); */ /** * @api {get} /users/:owner/received_events/public getEventsReceivedPublic * @apiVersion 5.0.0 * @apiName getEventsReceivedPublic * @apiDescription List public events that a user has received * @apiGroup activity * * @apiParam {String} owner * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.activity.getEventsReceivedPublic({ ... }); */ /** * @api {get} /feeds getFeeds * @apiVersion 5.0.0 * @apiName getFeeds * @apiDescription Get all feeds available for the authenticated user. * @apiGroup activity * * @apiExample {js} ex: github.activity.getFeeds({ ... }); */ /** * @api {get} /notifications/threads/:id getNotificationThread * @apiVersion 5.0.0 * @apiName getNotificationThread * @apiDescription View a single notification thread. * @apiGroup activity * * @apiParam {String} id * @apiExample {js} ex: github.activity.getNotificationThread({ ... }); */ /** * @api {get} /notifications getNotifications * @apiVersion 5.0.0 * @apiName getNotifications * @apiDescription Get all notifications for the current user, grouped by repository. * @apiGroup activity * * @apiParam {Boolean} [all=false] If true, show notifications marked as read. Default: false * @apiParam {Boolean} [participating=false] If true, only shows notifications in which the user is directly participating or mentioned. Default: false * @apiParam {Date} [since] Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ * @apiParam {String} [before] Only show notifications updated before the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. * @apiExample {js} ex: github.activity.getNotifications({ ... }); */ /** * @api {get} /repos/:owner/:repo/notifications getNotificationsForUser * @apiVersion 5.0.0 * @apiName getNotificationsForUser * @apiDescription Get all notifications for the given user. * @apiGroup activity * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Boolean} [all=false] If true, show notifications marked as read. Default: false * @apiParam {Boolean} [participating=false] If true, only shows notifications in which the user is directly participating or mentioned. Default: false * @apiParam {Date} [since] Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ * @apiParam {String} [before] Only show notifications updated before the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. * @apiExample {js} ex: github.activity.getNotificationsForUser({ ... }); */ /** * @api {get} /repos/:owner/:repo/subscription getRepoSubscription * @apiVersion 5.0.0 * @apiName getRepoSubscription * @apiDescription Get a Repository Subscription. * @apiGroup activity * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.activity.getRepoSubscription({ ... }); */ /** * @api {get} /repos/:owner/:repo/stargazers getStargazersForRepo * @apiVersion 5.0.0 * @apiName getStargazersForRepo * @apiDescription List Stargazers * @apiGroup activity * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.activity.getStargazersForRepo({ ... }); */ /** * @api {get} /user/starred getStarredRepos * @apiVersion 5.0.0 * @apiName getStarredRepos * @apiDescription List repositories being starred by the authenticated user * @apiGroup activity * * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.activity.getStarredRepos({ ... }); */ /** * @api {get} /users/:owner/starred getStarredReposForUser * @apiVersion 5.0.0 * @apiName getStarredReposForUser * @apiDescription List repositories being starred by a user * @apiGroup activity * * @apiParam {String} owner * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.activity.getStarredReposForUser({ ... }); */ /** * @api {get} /user/subscriptions getWatchedRepos * @apiVersion 5.0.0 * @apiName getWatchedRepos * @apiDescription List repositories being watched by the authenticated user. * @apiGroup activity * * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.activity.getWatchedRepos({ ... }); */ /** * @api {get} /users/:owner/subscriptions getWatchedReposForUser * @apiVersion 5.0.0 * @apiName getWatchedReposForUser * @apiDescription List repositories being watched by a user. * @apiGroup activity * * @apiParam {String} owner * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.activity.getWatchedReposForUser({ ... }); */ /** * @api {get} /repos/:owner/:repo/subscribers getWatchersForRepo * @apiVersion 5.0.0 * @apiName getWatchersForRepo * @apiDescription Get watchers for repository. * @apiGroup activity * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.activity.getWatchersForRepo({ ... }); */ /** * @api {patch} /notifications/threads/:id markNotificationThreadAsRead * @apiVersion 5.0.0 * @apiName markNotificationThreadAsRead * @apiDescription Mark a notification thread as read. * @apiGroup activity * * @apiParam {String} id * @apiExample {js} ex: github.activity.markNotificationThreadAsRead({ ... }); */ /** * @api {put} /notifications markNotificationsAsRead * @apiVersion 5.0.0 * @apiName markNotificationsAsRead * @apiDescription Mark notifications as read for authenticated user. * @apiGroup activity * * @apiParam {String} [last_read_at=Time.now] Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. Default: Time.now * @apiExample {js} ex: github.activity.markNotificationsAsRead({ ... }); */ /** * @api {put} /repos/:owner/:repo/notifications markNotificationsAsReadForRepo * @apiVersion 5.0.0 * @apiName markNotificationsAsReadForRepo * @apiDescription Mark notifications in a repo as read. * @apiGroup activity * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} [last_read_at=Time.now] Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. Default: Time.now * @apiExample {js} ex: github.activity.markNotificationsAsReadForRepo({ ... }); */ /** * @api {put} /notifications/threads/:id/subscription setNotificationThreadSubscription * @apiVersion 5.0.0 * @apiName setNotificationThreadSubscription * @apiDescription This lets you subscribe or unsubscribe from a conversation. Unsubscribing from a conversation mutes all future notifications (until you comment or get @mentioned once more). * @apiGroup activity * * @apiParam {String} id * @apiParam {Boolean} [subscribed] Determines if notifications should be received from this thread * @apiParam {Boolean} [ignored] Determines if all notifications should be blocked from this thread * @apiExample {js} ex: github.activity.setNotificationThreadSubscription({ ... }); */ /** * @api {put} /repos/:owner/:repo/subscription setRepoSubscription * @apiVersion 5.0.0 * @apiName setRepoSubscription * @apiDescription Set a Repository Subscription * @apiGroup activity * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Boolean} [subscribed] Determines if notifications should be received from this repository. * @apiParam {Boolean} [ignored] Determines if all notifications should be blocked from this repository. * @apiExample {js} ex: github.activity.setRepoSubscription({ ... }); */ /** * @api {put} /user/starred/:owner/:repo starRepo * @apiVersion 5.0.0 * @apiName starRepo * @apiDescription Star a repository * @apiGroup activity * * @apiParam {String} owner * @apiParam {String} repo * @apiExample {js} ex: github.activity.starRepo({ ... }); */ /** * @api {delete} /user/starred/:owner/:repo unstarRepo * @apiVersion 5.0.0 * @apiName unstarRepo * @apiDescription Unstar a repository * @apiGroup activity * * @apiParam {String} owner * @apiParam {String} repo * @apiExample {js} ex: github.activity.unstarRepo({ ... }); */ /** * @api {delete} /repos/:owner/:repo/subscription unwatchRepo * @apiVersion 5.0.0 * @apiName unwatchRepo * @apiDescription Unwatch a repository. * @apiGroup activity * * @apiParam {String} owner * @apiParam {String} repo * @apiExample {js} ex: github.activity.unwatchRepo({ ... }); */ /** * @api {get} /applications/:client_id/tokens/:access_token check * @apiVersion 5.0.0 * @apiName check * @apiDescription Check an authorization * @apiGroup authorization * * @apiParam {String} access_token OAuth token * @apiParam {String} [client_id] The 20 character OAuth app client key for which to create the token. * @apiExample {js} ex: github.authorization.check({ ... }); */ /** * @api {post} /authorizations create * @apiVersion 5.0.0 * @apiName create * @apiDescription Create a new authorization * @apiGroup authorization * * @apiParam {Array} [scopes] A list of scopes that this authorization is in. * @apiParam {String} [note] A note to remind you what the OAuth token is for. * @apiParam {String} [note_url] A URL to remind you what app the OAuth token is for. * @apiParam {String} [client_id] The 20 character OAuth app client key for which to create the token. * @apiParam {String} [client_secret] The 40 character OAuth app client secret for which to create the token. * @apiParam {String} [fingerprint] A unique string to distinguish an authorization from others created for the same client ID and user. * @apiExample {js} ex: github.authorization.create({ ... }); */ /** * @api {delete} /authorizations/:id delete * @apiVersion 5.0.0 * @apiName delete * @apiDescription Delete an authorization * @apiGroup authorization * * @apiParam {String} id * @apiExample {js} ex: github.authorization.delete({ ... }); */ /** * @api {delete} /applications/grants/:id deleteGrant * @apiVersion 5.0.0 * @apiName deleteGrant * @apiDescription Delete a grant. (In preview period. See README.) * @apiGroup authorization * * @apiParam {String} id * @apiExample {js} ex: github.authorization.deleteGrant({ ... }); */ /** * @api {get} /authorizations/:id get * @apiVersion 5.0.0 * @apiName get * @apiDescription Get a single authorization * @apiGroup authorization * * @apiParam {String} id * @apiExample {js} ex: github.authorization.get({ ... }); */ /** * @api {get} /authorizations getAll * @apiVersion 5.0.0 * @apiName getAll * @apiDescription List your authorizations * @apiGroup authorization * * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.authorization.getAll({ ... }); */ /** * @api {get} /applications/grants/:id getGrant * @apiVersion 5.0.0 * @apiName getGrant * @apiDescription Get a single grant. (In preview period. See README.) * @apiGroup authorization * * @apiParam {String} id * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.authorization.getGrant({ ... }); */ /** * @api {get} /applications/grants getGrants * @apiVersion 5.0.0 * @apiName getGrants * @apiDescription List your grants. (In preview period. See README.) * @apiGroup authorization * * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.authorization.getGrants({ ... }); */ /** * @api {put} /authorizations/clients/:client_id getOrCreateAuthorizationForApp * @apiVersion 5.0.0 * @apiName getOrCreateAuthorizationForApp * @apiDescription Get or create an authorization for a specific app * @apiGroup authorization * * @apiParam {String} client_secret The 40 character OAuth app client secret associated with the client ID specified in the URL. * @apiParam {String} [client_id] The 20 character OAuth app client key for which to create the token. * @apiParam {Array} [scopes] A list of scopes that this authorization is in. * @apiParam {String} [note] A note to remind you what the OAuth token is for. * @apiParam {String} [note_url] A URL to remind you what app the OAuth token is for. * @apiParam {String} [fingerprint] A unique string to distinguish an authorization from others created for the same client ID and user. * @apiExample {js} ex: github.authorization.getOrCreateAuthorizationForApp({ ... }); */ /** * @api {put} /authorizations/clients/:client_id/:fingerprint getOrCreateAuthorizationForAppAndFingerprint * @apiVersion 5.0.0 * @apiName getOrCreateAuthorizationForAppAndFingerprint * @apiDescription Get or create an authorization for a specific app and fingerprint * @apiGroup authorization * * @apiParam {String} client_secret The 40 character OAuth app client secret associated with the client ID specified in the URL. * @apiParam {String} [client_id] The 20 character OAuth app client key for which to create the token. * @apiParam {String} [fingerprint] A unique string to distinguish an authorization from others created for the same client ID and user. * @apiParam {Array} [scopes] A list of scopes that this authorization is in. * @apiParam {String} [note] A note to remind you what the OAuth token is for. * @apiParam {String} [note_url] A URL to remind you what app the OAuth token is for. * @apiExample {js} ex: github.authorization.getOrCreateAuthorizationForAppAndFingerprint({ ... }); */ /** * @api {post} /applications/:client_id/tokens/:access_token reset * @apiVersion 5.0.0 * @apiName reset * @apiDescription Reset an authorization * @apiGroup authorization * * @apiParam {String} access_token OAuth token * @apiParam {String} [client_id] The 20 character OAuth app client key for which to create the token. * @apiExample {js} ex: github.authorization.reset({ ... }); */ /** * @api {delete} /applications/:client_id/tokens/:access_token revoke * @apiVersion 5.0.0 * @apiName revoke * @apiDescription Revoke an authorization for an application * @apiGroup authorization * * @apiParam {String} access_token OAuth token * @apiParam {String} [client_id] The 20 character OAuth app client key for which to create the token. * @apiExample {js} ex: github.authorization.revoke({ ... }); */ /** * @api {patch} /authorizations/:id update * @apiVersion 5.0.0 * @apiName update * @apiDescription Update an existing authorization * @apiGroup authorization * * @apiParam {String} id * @apiParam {Array} [scopes] A list of scopes that this authorization is in. * @apiParam {Array} [add_scopes] A list of scopes to add to this authorization. * @apiParam {Array} [remove_scopes] A list of scopes to remove from this authorization. * @apiParam {String} [note] A note to remind you what the OAuth token is for. * @apiParam {String} [note_url] A URL to remind you what app the OAuth token is for. * @apiExample {js} ex: github.authorization.update({ ... }); */ /** * @api {post} /admin/organizations createOrg * @apiVersion 5.0.0 * @apiName createOrg * @apiDescription Create an organization * @apiGroup enterprise * * @apiParam {String} login The organization's username. * @apiParam {String} admin The login of the user who will manage this organization. * @apiParam {String} [profile_name] The organization's display name. * @apiExample {js} ex: github.enterprise.createOrg({ ... }); */ /** * @api {get} /enterprise/settings/license getLicense * @apiVersion 5.0.0 * @apiName getLicense * @apiDescription Get license information * @apiGroup enterprise * * @apiExample {js} ex: github.enterprise.getLicense({ ... }); */ /** * @api {post} /staff/indexing_jobs queueIndexingJob * @apiVersion 5.0.0 * @apiName queueIndexingJob * @apiDescription Queue an indexing job * @apiGroup enterprise * * @apiParam {String} target A string representing the item to index. * @apiExample {js} ex: github.enterprise.queueIndexingJob({ ... }); */ /** * @api {get} /enterprise/stats/:type stats * @apiVersion 5.0.0 * @apiName stats * @apiDescription Get statistics. * @apiGroup enterprise * * @apiParam {String} type Possible values: issues, hooks, milestones, orgs, comments, pages, users, gists, pulls, repos, all. * @apiExample {js} ex: github.enterprise.stats({ ... }); */ /** * @api {post} /admin/ldap/teams/:team_id/sync syncLdapForTeam * @apiVersion 5.0.0 * @apiName syncLdapForTeam * @apiDescription Sync LDAP mapping for a team. * @apiGroup enterprise * * @apiParam {Number} [team_id] * @apiExample {js} ex: github.enterprise.syncLdapForTeam({ ... }); */ /** * @api {post} /admin/ldap/users/:user/sync syncLdapForUser * @apiVersion 5.0.0 * @apiName syncLdapForUser * @apiDescription Sync LDAP mapping for a user. * @apiGroup enterprise * * @apiParam {String} user * @apiExample {js} ex: github.enterprise.syncLdapForUser({ ... }); */ /** * @api {patch} /admin/ldap/teams/:team_id/mapping updateLdapForTeam * @apiVersion 5.0.0 * @apiName updateLdapForTeam * @apiDescription Update LDAP mapping for a team. * @apiGroup enterprise * * @apiParam {Number} [team_id] * @apiExample {js} ex: github.enterprise.updateLdapForTeam({ ... }); */ /** * @api {patch} /admin/ldap/users/:user/mapping updateLdapForUser * @apiVersion 5.0.0 * @apiName updateLdapForUser * @apiDescription Update LDAP mapping for a user. * @apiGroup enterprise * * @apiParam {String} user * @apiExample {js} ex: github.enterprise.updateLdapForUser({ ... }); */ /** * @api {get} /gists/:id/star checkStar * @apiVersion 5.0.0 * @apiName checkStar * @apiDescription Check if a gist is starred * @apiGroup gists * * @apiParam {String} id * @apiExample {js} ex: github.gists.checkStar({ ... }); */ /** * @api {post} /gists create * @apiVersion 5.0.0 * @apiName create * @apiDescription Create a gist * @apiGroup gists * * @apiParam {Json} files 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' * @apiParam {Boolean} public * @apiParam {String} [description] * @apiExample {js} ex: github.gists.create({ ... }); */ /** * @api {post} /gists/:gist_id/comments createComment * @apiVersion 5.0.0 * @apiName createComment * @apiDescription Create a comment * @apiGroup gists * * @apiParam {String} gist_id Id (SHA1 hash) of the gist. * @apiParam {String} body * @apiExample {js} ex: github.gists.createComment({ ... }); */ /** * @api {delete} /gists/:id delete * @apiVersion 5.0.0 * @apiName delete * @apiDescription Delete a gist * @apiGroup gists * * @apiParam {String} id * @apiExample {js} ex: github.gists.delete({ ... }); */ /** * @api {delete} /gists/:gist_id/comments/:id deleteComment * @apiVersion 5.0.0 * @apiName deleteComment * @apiDescription Delete a comment * @apiGroup gists * * @apiParam {String} gist_id Id (SHA1 hash) of the gist. * @apiParam {String} id * @apiExample {js} ex: github.gists.deleteComment({ ... }); */ /** * @api {patch} /gists/:id edit * @apiVersion 5.0.0 * @apiName edit * @apiDescription Edit a gist * @apiGroup gists * * @apiParam {String} id * @apiParam {Json} files 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' * @apiParam {String} [description] * @apiExample {js} ex: github.gists.edit({ ... }); */ /** * @api {patch} /gists/:gist_id/comments/:id editComment * @apiVersion 5.0.0 * @apiName editComment * @apiDescription Edit a comment * @apiGroup gists * * @apiParam {String} gist_id Id (SHA1 hash) of the gist. * @apiParam {String} id * @apiParam {String} body * @apiExample {js} ex: github.gists.editComment({ ... }); */ /** * @api {post} /gists/:id/forks fork * @apiVersion 5.0.0 * @apiName fork * @apiDescription Fork a gist * @apiGroup gists * * @apiParam {String} id * @apiExample {js} ex: github.gists.fork({ ... }); */ /** * @api {get} /gists/:id get * @apiVersion 5.0.0 * @apiName get * @apiDescription Get a single gist * @apiGroup gists * * @apiParam {String} id * @apiExample {js} ex: github.gists.get({ ... }); */ /** * @api {get} /gists getAll * @apiVersion 5.0.0 * @apiName getAll * @apiDescription List the authenticated user's gists or if called anonymously, this will return all public gists * @apiGroup gists * * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiParam {Date} [since] Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ * @apiExample {js} ex: github.gists.getAll({ ... }); */ /** * @api {get} /gists/:gist_id/comments/:id getComment * @apiVersion 5.0.0 * @apiName getComment * @apiDescription Get a single comment * @apiGroup gists * * @apiParam {String} gist_id Id (SHA1 hash) of the gist. * @apiParam {String} id * @apiExample {js} ex: github.gists.getComment({ ... }); */ /** * @api {get} /gists/:gist_id/comments getComments * @apiVersion 5.0.0 * @apiName getComments * @apiDescription List comments on a gist * @apiGroup gists * * @apiParam {String} gist_id Id (SHA1 hash) of the gist. * @apiExample {js} ex: github.gists.getComments({ ... }); */ /** * @api {get} /gists/:id/commits getCommits * @apiVersion 5.0.0 * @apiName getCommits * @apiDescription List gist commits * @apiGroup gists * * @apiParam {String} id * @apiExample {js} ex: github.gists.getCommits({ ... }); */ /** * @api {get} /users/:owner/gists getForUser * @apiVersion 5.0.0 * @apiName getForUser * @apiDescription List a user's gists * @apiGroup gists * * @apiParam {String} owner * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiParam {Date} [since] Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ * @apiExample {js} ex: github.gists.getForUser({ ... }); */ /** * @api {get} /gists/:id/forks getForks * @apiVersion 5.0.0 * @apiName getForks * @apiDescription List gist forks * @apiGroup gists * * @apiParam {String} id * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.gists.getForks({ ... }); */ /** * @api {get} /gists/public getPublic * @apiVersion 5.0.0 * @apiName getPublic * @apiDescription List all public gists * @apiGroup gists * * @apiParam {Date} [since] Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ * @apiExample {js} ex: github.gists.getPublic({ ... }); */ /** * @api {get} /gists/:id/:sha getRevision * @apiVersion 5.0.0 * @apiName getRevision * @apiDescription Get a specific revision of a gist * @apiGroup gists * * @apiParam {String} id * @apiParam {String} sha * @apiExample {js} ex: github.gists.getRevision({ ... }); */ /** * @api {get} /gists/starred getStarred * @apiVersion 5.0.0 * @apiName getStarred * @apiDescription List the authenticated user's starred gists * @apiGroup gists * * @apiParam {Date} [since] Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ * @apiExample {js} ex: github.gists.getStarred({ ... }); */ /** * @api {put} /gists/:id/star star * @apiVersion 5.0.0 * @apiName star * @apiDescription Star a gist * @apiGroup gists * * @apiParam {String} id * @apiExample {js} ex: github.gists.star({ ... }); */ /** * @api {delete} /gists/:id/star unstar * @apiVersion 5.0.0 * @apiName unstar * @apiDescription Unstar a gist * @apiGroup gists * * @apiParam {String} id * @apiExample {js} ex: github.gists.unstar({ ... }); */ /** * @api {post} /repos/:owner/:repo/git/blobs createBlob * @apiVersion 5.0.0 * @apiName createBlob * @apiDescription Create a Blob * @apiGroup gitdata * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} content * @apiParam {String} encoding * @apiExample {js} ex: github.gitdata.createBlob({ ... }); */ /** * @api {post} /repos/:owner/:repo/git/commits createCommit * @apiVersion 5.0.0 * @apiName createCommit * @apiDescription Create a Commit * @apiGroup gitdata * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} message String of the commit message * @apiParam {String} tree String of the SHA of the tree object this commit points to * @apiParam {Array} parents Array of the SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided, for a merge commit, an array of more than one should be provided. * @apiParam {Json} [author] * @apiParam {Json} [committer] * @apiExample {js} ex: github.gitdata.createCommit({ ... }); */ /** * @api {post} /repos/:owner/:repo/git/refs createReference * @apiVersion 5.0.0 * @apiName createReference * @apiDescription Create a Reference * @apiGroup gitdata * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} ref String of the name of the fully qualified reference (ie: heads/master). If it doesn’t have at least one slash, it will be rejected. * @apiParam {String} sha * @apiExample {js} ex: github.gitdata.createReference({ ... }); */ /** * @api {post} /repos/:owner/:repo/git/tags createTag * @apiVersion 5.0.0 * @apiName createTag * @apiDescription Create a Tag Object * @apiGroup gitdata * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} tag String of the tag * @apiParam {String} message String of the tag message * @apiParam {String} object String of the SHA of the git object this is tagging * @apiParam {String} type String of the type of the object we’re tagging. Normally this is a commit but it can also be a tree or a blob. * @apiParam {Json} tagger JSON object that contains the following keys: `name` - String of the name of the author of the tag, `email` - String of the email of the author of the tag, `date` - Timestamp of when this object was tagged * @apiExample {js} ex: github.gitdata.createTag({ ... }); */ /** * @api {post} /repos/:owner/:repo/git/trees createTree * @apiVersion 5.0.0 * @apiName createTree * @apiDescription Create a Tree * @apiGroup gitdata * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Json} tree Array of Hash objects (of path, mode, type and sha) specifying a tree structure * @apiParam {String} [base_tree] String of the SHA1 of the tree you want to update with new data * @apiExample {js} ex: github.gitdata.createTree({ ... }); */ /** * @api {delete} /repos/:owner/:repo/git/refs/:ref deleteReference * @apiVersion 5.0.0 * @apiName deleteReference * @apiDescription Delete a Reference * @apiGroup gitdata * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} ref String of the name of the fully qualified reference (ie: heads/master). If it doesn’t have at least one slash, it will be rejected. * @apiExample {js} ex: github.gitdata.deleteReference({ ... }); */ /** * @api {get} /repos/:owner/:repo/git/blobs/:sha getBlob * @apiVersion 5.0.0 * @apiName getBlob * @apiDescription Get a Blob * @apiGroup gitdata * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} sha * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.gitdata.getBlob({ ... }); */ /** * @api {get} /repos/:owner/:repo/git/commits/:sha getCommit * @apiVersion 5.0.0 * @apiName getCommit * @apiDescription Get a Commit * @apiGroup gitdata * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} sha * @apiExample {js} ex: github.gitdata.getCommit({ ... }); */ /** * @api {get} /repos/:owner/:repo/git/commits/:sha getCommitSignatureVerification * @apiVersion 5.0.0 * @apiName getCommitSignatureVerification * @apiDescription Get a Commit Signature Verification. (In preview period. See README.) * @apiGroup gitdata * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} sha * @apiExample {js} ex: github.gitdata.getCommitSignatureVerification({ ... }); */ /** * @api {get} /repos/:owner/:repo/git/refs/:ref getReference * @apiVersion 5.0.0 * @apiName getReference * @apiDescription Get a Reference * @apiGroup gitdata * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} ref String of the name of the fully qualified reference (ie: heads/master). If it doesn’t have at least one slash, it will be rejected. * @apiExample {js} ex: github.gitdata.getReference({ ... }); */ /** * @api {get} /repos/:owner/:repo/git/refs getReferences * @apiVersion 5.0.0 * @apiName getReferences * @apiDescription Get all References * @apiGroup gitdata * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.gitdata.getReferences({ ... }); */ /** * @api {get} /repos/:owner/:repo/git/tags/:sha getTag * @apiVersion 5.0.0 * @apiName getTag * @apiDescription Get a Tag * @apiGroup gitdata * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} sha * @apiExample {js} ex: github.gitdata.getTag({ ... }); */ /** * @api {get} /repos/:owner/:repo/git/tags/:sha getTagSignatureVerification * @apiVersion 5.0.0 * @apiName getTagSignatureVerification * @apiDescription Get a Tag Signature Verification. (In preview period. See README.) * @apiGroup gitdata * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} sha * @apiExample {js} ex: github.gitdata.getTagSignatureVerification({ ... }); */ /** * @api {get} /repos/:owner/:repo/git/refs/tags getTags * @apiVersion 5.0.0 * @apiName getTags * @apiDescription Get all tag References * @apiGroup gitdata * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.gitdata.getTags({ ... }); */ /** * @api {get} /repos/:owner/:repo/git/trees/:sha getTree * @apiVersion 5.0.0 * @apiName getTree * @apiDescription Get a Tree * @apiGroup gitdata * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} sha * @apiParam {Boolean} [recursive] * @apiExample {js} ex: github.gitdata.getTree({ ... }); */ /** * @api {patch} /repos/:owner/:repo/git/refs/:ref updateReference * @apiVersion 5.0.0 * @apiName updateReference * @apiDescription Update a Reference * @apiGroup gitdata * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} ref String of the name of the fully qualified reference (ie: heads/master). If it doesn’t have at least one slash, it will be rejected. * @apiParam {String} sha * @apiParam {Boolean} [force=false] Boolean indicating whether to force the update or to make sure the update is a fast-forward update. The default is false, so leaving this out or setting it to false will make sure you’re not overwriting work. * @apiExample {js} ex: github.gitdata.updateReference({ ... }); */ /** * @api {post} /installations/:installation_id/access_tokens createInstallationToken * @apiVersion 5.0.0 * @apiName createInstallationToken * @apiDescription Create a new installation token. (In preview period. See README.) * @apiGroup integrations * * @apiParam {Number} installation_id The id of the installation for this integration. * @apiParam {Number} [user_id] The id of the user for whom the integration is acting on behalf of. * @apiExample {js} ex: github.integrations.createInstallationToken({ ... }); */ /** * @api {get} /integration/installations getInstallations * @apiVersion 5.0.0 * @apiName getInstallations * @apiDescription List the integration's installations. (In preview period. See README.) * @apiGroup integrations * * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.integrations.getInstallations({ ... }); */ /** * @api {post} /integration/identity/user getUserIdentity * @apiVersion 5.0.0 * @apiName getUserIdentity * @apiDescription Request identity of user. (In preview period. See README.) * @apiGroup integrations * * @apiParam {String} [nonce] * @apiExample {js} ex: github.integrations.getUserIdentity({ ... }); */ /** * @api {post} /repos/:owner/:repo/issues/:number/assignees addAssigneesToIssue * @apiVersion 5.0.0 * @apiName addAssigneesToIssue * @apiDescription Add assignees to an issue. * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Number} number * @apiParam {Array} assignees Logins for the users that should be added to the issue. * @apiExample {js} ex: github.issues.addAssigneesToIssue({ ... }); */ /** * @api {post} /repos/:owner/:repo/issues/:number/labels addLabels * @apiVersion 5.0.0 * @apiName addLabels * @apiDescription Add labels to an issue * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Number} number * @apiParam {Array} body * @apiExample {js} ex: github.issues.addLabels({ ... }); */ /** * @api {get} /repos/:owner/:repo/assignees/:assignee checkAssignee * @apiVersion 5.0.0 * @apiName checkAssignee * @apiDescription Check assignee * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} assignee Login for the user that this issue should be assigned to. * @apiExample {js} ex: github.issues.checkAssignee({ ... }); */ /** * @api {post} /repos/:owner/:repo/issues create * @apiVersion 5.0.0 * @apiName create * @apiDescription Create an issue * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} title * @apiParam {String} [body] * @apiParam {String} [assignee] Login for the user that this issue should be assigned to. * @apiParam {Number} [milestone] Milestone to associate this issue with. * @apiParam {Json} [labels] Array of strings - Labels to associate with this issue. * @apiParam {Array} [assignees] Logins for Users to assign to this issue. NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise. * @apiExample {js} ex: github.issues.create({ ... }); */ /** * @api {post} /repos/:owner/:repo/issues/:number/comments createComment * @apiVersion 5.0.0 * @apiName createComment * @apiDescription Create a comment * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Number} number * @apiParam {String} body * @apiExample {js} ex: github.issues.createComment({ ... }); */ /** * @api {post} /repos/:owner/:repo/labels createLabel * @apiVersion 5.0.0 * @apiName createLabel * @apiDescription Create a label * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} name * @apiParam {String} color 6 character hex code, without a leading #. * @apiExample {js} ex: github.issues.createLabel({ ... }); */ /** * @api {post} /repos/:owner/:repo/milestones createMilestone * @apiVersion 5.0.0 * @apiName createMilestone * @apiDescription Create a milestone * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} title * @apiParam {String} [state=open] * @apiParam {String} [description] * @apiParam {Date} [due_on] Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ * @apiExample {js} ex: github.issues.createMilestone({ ... }); */ /** * @api {delete} /repos/:owner/:repo/issues/comments/:id deleteComment * @apiVersion 5.0.0 * @apiName deleteComment * @apiDescription Delete a comment * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} id * @apiExample {js} ex: github.issues.deleteComment({ ... }); */ /** * @api {delete} /repos/:owner/:repo/labels/:name deleteLabel * @apiVersion 5.0.0 * @apiName deleteLabel * @apiDescription Delete a label * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} name * @apiExample {js} ex: github.issues.deleteLabel({ ... }); */ /** * @api {delete} /repos/:owner/:repo/milestones/:number deleteMilestone * @apiVersion 5.0.0 * @apiName deleteMilestone * @apiDescription Delete a milestone * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Number} number * @apiExample {js} ex: github.issues.deleteMilestone({ ... }); */ /** * @api {patch} /repos/:owner/:repo/issues/:number edit * @apiVersion 5.0.0 * @apiName edit * @apiDescription Edit an issue * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Number} number * @apiParam {String} [title] * @apiParam {String} [body] * @apiParam {String} [assignee] Login for the user that this issue should be assigned to. * @apiParam {String} [state=open] open or closed * @apiParam {Number} [milestone] Milestone to associate this issue with. * @apiParam {Json} [labels] Array of strings - Labels to associate with this issue. * @apiParam {Array} [assignees] Logins for Users to assign to this issue. Pass one or more user logins to replace the set of assignees on this Issue. .Send an empty array ([]) to clear all assignees from the Issue. NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise. * @apiExample {js} ex: github.issues.edit({ ... }); */ /** * @api {patch} /repos/:owner/:repo/issues/comments/:id editComment * @apiVersion 5.0.0 * @apiName editComment * @apiDescription Edit a comment * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} id * @apiParam {String} body * @apiExample {js} ex: github.issues.editComment({ ... }); */ /** * @api {get} /repos/:owner/:repo/issues/:number get * @apiVersion 5.0.0 * @apiName get * @apiDescription Get a single issue * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Number} number * @apiExample {js} ex: github.issues.get({ ... }); */ /** * @api {get} /issues getAll * @apiVersion 5.0.0 * @apiName getAll * @apiDescription List all issues across all the authenticated user's visible repositories including owned repositories, member repositories, and organization repositories * @apiGroup issues * * @apiParam {String} [filter] * @apiParam {String} [state=open] open, closed, or all * @apiParam {String} [labels] String list of comma separated Label names. Example: bug,ui,@high * @apiParam {String} [sort=created] * @apiParam {String} [direction=desc] * @apiParam {Date} [since] Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.issues.getAll({ ... }); */ /** * @api {get} /repos/:owner/:repo/assignees getAssignees * @apiVersion 5.0.0 * @apiName getAssignees * @apiDescription List assignees * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiExample {js} ex: github.issues.getAssignees({ ... }); */ /** * @api {get} /repos/:owner/:repo/issues/comments/:id getComment * @apiVersion 5.0.0 * @apiName getComment * @apiDescription Get a single comment * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} id * @apiExample {js} ex: github.issues.getComment({ ... }); */ /** * @api {get} /repos/:owner/:repo/issues/:number/comments getComments * @apiVersion 5.0.0 * @apiName getComments * @apiDescription List comments on an issue * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Number} number * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.issues.getComments({ ... }); */ /** * @api {get} /repos/:owner/:repo/issues/comments getCommentsForRepo * @apiVersion 5.0.0 * @apiName getCommentsForRepo * @apiDescription List comments in a repository * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} [sort=created] * @apiParam {String} [direction=desc] * @apiParam {Date} [since] Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.issues.getCommentsForRepo({ ... }); */ /** * @api {get} /repos/:owner/:repo/issues/events/:id getEvent * @apiVersion 5.0.0 * @apiName getEvent * @apiDescription Get a single event * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {String} id * @apiExample {js} ex: github.issues.getEvent({ ... }); */ /** * @api {get} /repos/:owner/:repo/issues/:number/events getEvents * @apiVersion 5.0.0 * @apiName getEvents * @apiDescription List events for an issue * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Number} number * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.issues.getEvents({ ... }); */ /** * @api {get} /repos/:owner/:repo/issues/events getEventsForRepo * @apiVersion 5.0.0 * @apiName getEventsForRepo * @apiDescription List events for a repository * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.issues.getEventsForRepo({ ... }); */ /** * @api {get} /repos/:owner/:repo/issues/:number/timeline getEventsTimeline * @apiVersion 5.0.0 * @apiName getEventsTimeline * @apiDescription List events for an issue. (In preview period. See README.) * @apiGroup issues * * @apiParam {String} owner * @apiParam {String} repo * @apiParam {Number} number * @apiParam {Number} [page] Page number of the results to fetch. * @apiParam {Number} [per_page=30] A custom page size up to 100. Default is 30. * @apiExample {js} ex: github.issues.getEventsTimeline({ ... }); */ /** * @api {get} /orgs/:org/issues getForOrg * @apiVersion 5.0.0 * @apiName getForOrg * @apiDescription List all issues for a given organization for the authenticated user * @apiGroup issues * * @apiParam {String} org * @apiParam {String} [filter] * @apiParam {String} [state=open] open, closed, or all * @apiParam {String} [labels] String list of comma separated L