{"action":"created","issue":{"url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/411","labels_url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/411/labels{/name}","comments_url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/411/comments","events_url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/411/events","html_url":"https://github.com/sigmavirus24/github3.py/issues/411","id":94783114,"number":411,"title":"PullRequests should have an issue method","user":{"login":"sigmavirus24","id":240830,"avatar_url":"https://avatars.githubusercontent.com/u/240830?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmavirus24","html_url":"https://github.com/sigmavirus24","followers_url":"https://api.github.com/users/sigmavirus24/followers","following_url":"https://api.github.com/users/sigmavirus24/following{/other_user}","gists_url":"https://api.github.com/users/sigmavirus24/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmavirus24/subscriptions","organizations_url":"https://api.github.com/users/sigmavirus24/orgs","repos_url":"https://api.github.com/users/sigmavirus24/repos","events_url":"https://api.github.com/users/sigmavirus24/events{/privacy}","received_events_url":"https://api.github.com/users/sigmavirus24/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sigmavirus24/github3.py/labels/Easy","name":"Easy","color":"02e10c"},{"url":"https://api.github.com/repos/sigmavirus24/github3.py/labels/Mentored/Pair%20available","name":"Mentored/Pair available","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-13T18:36:08Z","updated_at":"2015-11-03T22:46:11Z","closed_at":"2015-11-03T22:46:11Z","body":"Issues have a `pull_request` method to retrieve the pull request (i.e., when the issue is actually a pull request). Pull Requests should have a similar method to get an Issue object.\r\n\r\nThere's two possible ways to implement this:\r\n\r\n1. Just use the Pull Request's existing JSON data since it'll just have a few extra things that the Issue does\r\n2. Make a new request to the API for the issue data\r\n\r\nPersonally I prefer 2 since the Pull Request object could be a bit stale."},"comment":{"url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/comments/153513104","html_url":"https://github.com/sigmavirus24/github3.py/issues/411#issuecomment-153513104","issue_url":"https://api.github.com/repos/sigmavirus24/github3.py/issues/411","id":153513104,"user":{"login":"sigmavirus24","id":240830,"avatar_url":"https://avatars.githubusercontent.com/u/240830?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmavirus24","html_url":"https://github.com/sigmavirus24","followers_url":"https://api.github.com/users/sigmavirus24/followers","following_url":"https://api.github.com/users/sigmavirus24/following{/other_user}","gists_url":"https://api.github.com/users/sigmavirus24/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmavirus24/subscriptions","organizations_url":"https://api.github.com/users/sigmavirus24/orgs","repos_url":"https://api.github.com/users/sigmavirus24/repos","events_url":"https://api.github.com/users/sigmavirus24/events{/privacy}","received_events_url":"https://api.github.com/users/sigmavirus24/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T22:46:11Z","updated_at":"2015-11-03T22:46:11Z","body":"You're very right @ekmartin! Thanks!"}}