{"action":"created","issue":{"url":"https://api.github.com/repos/czechboy0/Buildasaur/issues/15","labels_url":"https://api.github.com/repos/czechboy0/Buildasaur/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/czechboy0/Buildasaur/issues/15/comments","events_url":"https://api.github.com/repos/czechboy0/Buildasaur/issues/15/events","html_url":"https://github.com/czechboy0/Buildasaur/issues/15","id":72122438,"number":15,"title":"Check if supplied GitHub account has read and write access to the repository","user":{"login":"mdio","id":8616698,"avatar_url":"https://avatars.githubusercontent.com/u/8616698?v=3","gravatar_id":"","url":"https://api.github.com/users/mdio","html_url":"https://github.com/mdio","followers_url":"https://api.github.com/users/mdio/followers","following_url":"https://api.github.com/users/mdio/following{/other_user}","gists_url":"https://api.github.com/users/mdio/gists{/gist_id}","starred_url":"https://api.github.com/users/mdio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdio/subscriptions","organizations_url":"https://api.github.com/users/mdio/orgs","repos_url":"https://api.github.com/users/mdio/repos","events_url":"https://api.github.com/users/mdio/events{/privacy}","received_events_url":"https://api.github.com/users/mdio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/czechboy0/Buildasaur/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-30T10:27:33Z","updated_at":"2015-04-30T11:35:14Z","closed_at":null,"body":"We ran into a problem with our private repository and the GitHub user account used for Buildasaur had read only access to the repository.\r\nCredential validation from Buildasaur was successful and Bots were created, integrations ran.\r\nBut posting the integration result to GitHub and adding the comment failed and it took us a while to figure out why.\r\n\r\nIt would be cool if Buildasaur could check for write access as well and at least warn that integration results cannot be published on GitHub without write access."},"comment":{"url":"https://api.github.com/repos/czechboy0/Buildasaur/issues/comments/97745604","html_url":"https://github.com/czechboy0/Buildasaur/issues/15#issuecomment-97745604","issue_url":"https://api.github.com/repos/czechboy0/Buildasaur/issues/15","id":97745604,"user":{"login":"mdio","id":8616698,"avatar_url":"https://avatars.githubusercontent.com/u/8616698?v=3","gravatar_id":"","url":"https://api.github.com/users/mdio","html_url":"https://github.com/mdio","followers_url":"https://api.github.com/users/mdio/followers","following_url":"https://api.github.com/users/mdio/following{/other_user}","gists_url":"https://api.github.com/users/mdio/gists{/gist_id}","starred_url":"https://api.github.com/users/mdio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdio/subscriptions","organizations_url":"https://api.github.com/users/mdio/orgs","repos_url":"https://api.github.com/users/mdio/repos","events_url":"https://api.github.com/users/mdio/events{/privacy}","received_events_url":"https://api.github.com/users/mdio/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T11:35:14Z","updated_at":"2015-04-30T11:35:14Z","body":"A few tests with the [repos GET endpoint](https://developer.github.com/v3/repos/#get) make me confident that the part with permissions is the key here. `push` (write) and `pull` (read) must be true in order to do everything Buildasaur does.\r\n```js\r\n\"permissions\": {\r\n      \"admin\": false,\r\n      \"push\": true,\r\n      \"pull\": true\r\n    }\r\n```"}}