{"action":"created","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/1655","repository_url":"https://api.github.com/repos/gogits/gogs","labels_url":"https://api.github.com/repos/gogits/gogs/issues/1655/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/1655/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/1655/events","html_url":"https://github.com/gogits/gogs/issues/1655","id":107021236,"number":1655,"title":"Add possibility to checkout pull request locally ","user":{"login":"hhenkel","id":2813782,"avatar_url":"https://avatars.githubusercontent.com/u/2813782?v=3","gravatar_id":"","url":"https://api.github.com/users/hhenkel","html_url":"https://github.com/hhenkel","followers_url":"https://api.github.com/users/hhenkel/followers","following_url":"https://api.github.com/users/hhenkel/following{/other_user}","gists_url":"https://api.github.com/users/hhenkel/gists{/gist_id}","starred_url":"https://api.github.com/users/hhenkel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhenkel/subscriptions","organizations_url":"https://api.github.com/users/hhenkel/orgs","repos_url":"https://api.github.com/users/hhenkel/repos","events_url":"https://api.github.com/users/hhenkel/events{/privacy}","received_events_url":"https://api.github.com/users/hhenkel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gogits/gogs/labels/kind/feature","name":"kind/feature","color":"5319e7"},{"url":"https://api.github.com/repos/gogits/gogs/labels/status/needs%20feedback","name":"status/needs feedback","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/gogits/gogs/milestones/9","html_url":"https://github.com/gogits/gogs/milestones/0.9.0","labels_url":"https://api.github.com/repos/gogits/gogs/milestones/9/labels","id":1226114,"number":9,"title":"0.9.0","description":"","creator":{"login":"Unknwon","id":2946214,"avatar_url":"https://avatars.githubusercontent.com/u/2946214?v=3","gravatar_id":"","url":"https://api.github.com/users/Unknwon","html_url":"https://github.com/Unknwon","followers_url":"https://api.github.com/users/Unknwon/followers","following_url":"https://api.github.com/users/Unknwon/following{/other_user}","gists_url":"https://api.github.com/users/Unknwon/gists{/gist_id}","starred_url":"https://api.github.com/users/Unknwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unknwon/subscriptions","organizations_url":"https://api.github.com/users/Unknwon/orgs","repos_url":"https://api.github.com/users/Unknwon/repos","events_url":"https://api.github.com/users/Unknwon/events{/privacy}","received_events_url":"https://api.github.com/users/Unknwon/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":197,"state":"open","created_at":"2015-07-26T11:28:23Z","updated_at":"2016-03-01T19:39:45Z","due_on":null,"closed_at":null},"comments":20,"created_at":"2015-09-17T16:20:37Z","updated_at":"2016-03-01T21:49:04Z","closed_at":null,"body":"There are various reason why one might want to checkout a pull request locally.\r\n- When there is conflicting pull request it should be possible to checkout the request itself to resolve the issue locally.\r\n- It's enabling people to configure there CI solution to checkout and test the pull request (and comment the result back to gogs once the api is ready).\r\n- The original author might have deleted his fork of the repo, but one might still want to accept the pull request.\r\n\r\nThis is also possible on other solutions like github - [merging a pull request](https://help.github.com/articles/merging-a-pull-request/#checking-out-a-pull-request-locally) / [checking out pull requests locally](https://help.github.com/articles/checking-out-pull-requests-locally/) or [gitblit](http://gitblit.com/) which has something called [tickets](http://gitblit.com/tickets_overview.html)."},"comment":{"url":"https://api.github.com/repos/gogits/gogs/issues/comments/190921268","html_url":"https://github.com/gogits/gogs/issues/1655#issuecomment-190921268","issue_url":"https://api.github.com/repos/gogits/gogs/issues/1655","id":190921268,"user":{"login":"hhenkel","id":2813782,"avatar_url":"https://avatars.githubusercontent.com/u/2813782?v=3","gravatar_id":"","url":"https://api.github.com/users/hhenkel","html_url":"https://github.com/hhenkel","followers_url":"https://api.github.com/users/hhenkel/followers","following_url":"https://api.github.com/users/hhenkel/following{/other_user}","gists_url":"https://api.github.com/users/hhenkel/gists{/gist_id}","starred_url":"https://api.github.com/users/hhenkel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhenkel/subscriptions","organizations_url":"https://api.github.com/users/hhenkel/orgs","repos_url":"https://api.github.com/users/hhenkel/repos","events_url":"https://api.github.com/users/hhenkel/events{/privacy}","received_events_url":"https://api.github.com/users/hhenkel/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T21:49:04Z","updated_at":"2016-03-01T21:49:04Z","body":"@Unknwon / @mhartkorn sorry, was to busy and distracted at work.\r\n\r\nI just gave it a try with the current develop branch and it looks good to me so far:\r\n\r\n```\r\n$ git ls-remote\r\nFrom http://localhost:3000/test/upstream.git\r\n78501add6739796f12d728de95cb763b08d28d96        HEAD\r\n78501add6739796f12d728de95cb763b08d28d96        refs/heads/master\r\n76112873d46518bae7b74c05c9b69ad6209148c3        refs/pull/1/head\r\n```\r\n\r\n```\r\n$ git fetch origin pull/1/head\r\nremote: Counting objects: 3, done.\r\nremote: Total 3 (delta 0), reused 0 (delta 0)\r\nUnpacking objects: 100% (3/3), done.\r\nFrom http://localhost:3000/test/upstream\r\n * branch            refs/pull/1/head -> FETCH_HEAD\r\n```"}}