Skip to content

Commit

Permalink
updated to last github api version (v 11.10.343)
Browse files Browse the repository at this point in the history
  • Loading branch information
pitpit committed Aug 5, 2014
1 parent 2d0da3d commit b711c15
Showing 1 changed file with 39 additions and 3 deletions.
42 changes: 39 additions & 3 deletions src/OAuth/OAuth2/Service/GitHub.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ class GitHub extends AbstractService
*/
const SCOPE_REPO = 'repo';

/**
* Grants access to deployment statuses for public and private repositories.
* This scope is only necessary to grant other users or services access to deployment statuses, without granting access to the code.
*/
const SCOPE_REPO_DEPLOYMENT = 'repo_deployment';

/**
* Read/write access to public and private repository commit statuses. This scope is only necessary to grant other
* users or services access to private repository commit statuses without granting access to the code. The repo and
Expand All @@ -71,22 +77,52 @@ class GitHub extends AbstractService
* Write access to gists.
*/
const SCOPE_GIST = 'gist';

/**
* Grants read and ping access to hooks in public or private repositories.
*/
const SCOPE_HOOKS_READ = 'read:repo_hook';

/**
* Grants read, write, and ping access to hooks in public or private repositories.
*/
const SCOPE_HOOKS_WRITE = 'write:repo_hook';

/**
* Grants read, write, ping, and delete access to hooks in public or private repositories.
*/
const SCOPE_HOOKS_ADMIN = 'admin:repo_hook';

/**
* Read-only access to organization, teams, and membership.
*/
const SCOPE_ORG_READ = 'read:org';

/**
* Publicize and unpublicize organization membership.
*/
const SCOPE_ORG_WRITE = 'write:org';

/**
* Fully manage organization, teams, and memberships.
*/
const SCOPE_ORG_ADMIN = 'admin:org';

/**
* List and view details for public keys.
*/
const SCOPE_PUBLIC_KEY_READ = 'read:public_key';

/**
* Create, list, and view details for public keys.
*/
const SCOPE_PUBLIC_KEY_WRITE = 'write:public_key';

/**
* Fully manage public keys.
*/
const SCOPE_PUBLIC_KEY_ADMIN = 'admin:public_key';

public function __construct(
CredentialsInterface $credentials,
ClientInterface $httpClient,
Expand Down

0 comments on commit b711c15

Please sign in to comment.