{"action":"created","issue":{"url":"https://api.github.com/repos/jaxbot/github-issues.vim/issues/139","labels_url":"https://api.github.com/repos/jaxbot/github-issues.vim/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/jaxbot/github-issues.vim/issues/139/comments","events_url":"https://api.github.com/repos/jaxbot/github-issues.vim/issues/139/events","html_url":"https://github.com/jaxbot/github-issues.vim/pull/139","id":64971845,"number":139,"title":"Adding workflow for pull requests","user":{"login":"TheJefe","id":2390653,"avatar_url":"https://avatars.githubusercontent.com/u/2390653?v=3","gravatar_id":"","url":"https://api.github.com/users/TheJefe","html_url":"https://github.com/TheJefe","followers_url":"https://api.github.com/users/TheJefe/followers","following_url":"https://api.github.com/users/TheJefe/following{/other_user}","gists_url":"https://api.github.com/users/TheJefe/gists{/gist_id}","starred_url":"https://api.github.com/users/TheJefe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheJefe/subscriptions","organizations_url":"https://api.github.com/users/TheJefe/orgs","repos_url":"https://api.github.com/users/TheJefe/repos","events_url":"https://api.github.com/users/TheJefe/events{/privacy}","received_events_url":"https://api.github.com/users/TheJefe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-28T18:17:32Z","updated_at":"2015-03-29T20:03:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jaxbot/github-issues.vim/pulls/139","html_url":"https://github.com/jaxbot/github-issues.vim/pull/139","diff_url":"https://github.com/jaxbot/github-issues.vim/pull/139.diff","patch_url":"https://github.com/jaxbot/github-issues.vim/pull/139.patch"},"body":"Sorry this PR became so big, but it didn't make sense to open a PR until an entire workflow was implemented.  It might be best to review it commit by commit.\r\n\r\nThe general purpose of this change was to support a pull request based workflow.  I started working on the [vim-prreview](https://github.com/TheJefe/vim-prreview) plugin before I knew that this project exisited.  So after finding github-issues.vim, I chose to simply open github-issues.vim up to allow access from other plugins.  Then since this was for a pull request workflow, it only made since to be able to view commit lists and changes, very much like github has from its pull requests view on the webpage.\r\n\r\nThis PR does a few things, that I have listed below.\r\n\r\n* use a file to get github access token, because it is not secure to store it in your vimrc when you back it up to github.\r\n* allow other plugins to use this one by allowing passing params in for repo and number of an issue\r\n* add \"Commits\" and \"Files Changed\" tags to an issue display. When pressing enter on them, you'll get a list of commits or it will show the file diffs for the pull request\r\n* allow a user to press enter on the commit list to open \"Gedit\" for that commit.\r\n* hit github's api for commit diffs rather then use fugitive, because this way we don't have to worry about having the repo available locally.\r\n* open links in a new tab or split. 's' mapped for split, `<CR>` for new tab\r\n\r\n## Demos from [vim-prreview](https://github.com/TheJefe/vim-prreview)\r\n![vim-prreview](https://cloud.githubusercontent.com/assets/2390653/5782762/cf46ba20-9d8b-11e4-9cbd-0d4462249d60.gif)\r\n\r\n### Commits using [the-jefe/github-issues.vim](https://github.com/TheJefe/github-issues.vim)\r\n\r\n![commits](https://cloud.githubusercontent.com/assets/2390653/6881865/eef16b16-d546-11e4-8e4a-d0554f83b30e.gif)\r\n\r\n### File Diff using [the-jefe/github-issues.vim](https://github.com/TheJefe/github-issues.vim)\r\n\r\n![file_diff](https://cloud.githubusercontent.com/assets/2390653/6881891/d038ff80-d547-11e4-8027-0202756c2448.gif)\r\n"},"comment":{"url":"https://api.github.com/repos/jaxbot/github-issues.vim/issues/comments/87466333","html_url":"https://github.com/jaxbot/github-issues.vim/pull/139#issuecomment-87466333","issue_url":"https://api.github.com/repos/jaxbot/github-issues.vim/issues/139","id":87466333,"user":{"login":"TheJefe","id":2390653,"avatar_url":"https://avatars.githubusercontent.com/u/2390653?v=3","gravatar_id":"","url":"https://api.github.com/users/TheJefe","html_url":"https://github.com/TheJefe","followers_url":"https://api.github.com/users/TheJefe/followers","following_url":"https://api.github.com/users/TheJefe/following{/other_user}","gists_url":"https://api.github.com/users/TheJefe/gists{/gist_id}","starred_url":"https://api.github.com/users/TheJefe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheJefe/subscriptions","organizations_url":"https://api.github.com/users/TheJefe/orgs","repos_url":"https://api.github.com/users/TheJefe/repos","events_url":"https://api.github.com/users/TheJefe/events{/privacy}","received_events_url":"https://api.github.com/users/TheJefe/received_events","type":"User","site_admin":false},"created_at":"2015-03-29T20:03:03Z","updated_at":"2015-03-29T20:03:03Z","body":"Delay? I'm surprised you got back to me this quick :) . thanks again for\nreviewing\n\nOn Sun, Mar 29, 2015, 1:57 PM Jonathan Warner <notifications@github.com>\nwrote:\n\n> Ah, duh. Gotcha. Alright, I'll test out GHI.vim and make sure everything\n> works as usual, then add in vim-prreview and give that a whurl. Sorry for\n> the delay on getting back to you. It's a homework weekend :\\\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/jaxbot/github-issues.vim/pull/139#issuecomment-87450478>\n> .\n>\n"}}