{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/9377","labels_url":"https://api.github.com/repos/golang/go/issues/9377/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/9377/comments","events_url":"https://api.github.com/repos/golang/go/issues/9377/events","html_url":"https://github.com/golang/go/issues/9377","id":52342109,"number":9377,"title":"x/review/git-codereview: doesn't set upstream to origin/master","user":{"login":"mattn","id":10111,"avatar_url":"https://avatars.githubusercontent.com/u/10111?v=3","gravatar_id":"","url":"https://api.github.com/users/mattn","html_url":"https://github.com/mattn","followers_url":"https://api.github.com/users/mattn/followers","following_url":"https://api.github.com/users/mattn/following{/other_user}","gists_url":"https://api.github.com/users/mattn/gists{/gist_id}","starred_url":"https://api.github.com/users/mattn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattn/subscriptions","organizations_url":"https://api.github.com/users/mattn/orgs","repos_url":"https://api.github.com/users/mattn/repos","events_url":"https://api.github.com/users/mattn/events{/privacy}","received_events_url":"https://api.github.com/users/mattn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/22","html_url":"https://github.com/golang/go/milestones/Unreleased","labels_url":"https://api.github.com/repos/golang/go/milestones/22/labels","id":1067491,"number":22,"title":"Unreleased","description":"Issues that do not affect released Go code and binaries.\r\n","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars.githubusercontent.com/u/104030?v=3","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":342,"closed_issues":185,"state":"open","created_at":"2015-04-14T18:48:22Z","updated_at":"2015-08-25T15:23:26Z","due_on":"2099-12-31T05:00:00Z","closed_at":null},"comments":17,"created_at":"2014-12-18T09:34:31Z","updated_at":"2015-08-25T16:27:24Z","closed_at":null,"body":"We need to set upstream to master like below.\r\n\r\n```\r\n$ git checkout -b fix-windows-readlink\r\n$ vim foo.go\r\n$ git change\r\ngit rev-parse --abbrev-ref fix-windows-readlink@{u}\r\nerror: No upstream branch found for 'fix-windows-readlink'\r\nerror: No upstream branch found for 'fix-windows-readlink'\r\nfatal: ambiguous argument 'fix-windows-readlink@{u}': unknown revision or path not in the working tree.\r\nUse '--' to separate paths from revisions\r\nfix-windows-readlink@{u}\r\n```\r\n\r\n```\r\ngit branch --set-upstream fix-windows-readlink origin/master\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/134660200","html_url":"https://github.com/golang/go/issues/9377#issuecomment-134660200","issue_url":"https://api.github.com/repos/golang/go/issues/9377","id":134660200,"user":{"login":"mattn","id":10111,"avatar_url":"https://avatars.githubusercontent.com/u/10111?v=3","gravatar_id":"","url":"https://api.github.com/users/mattn","html_url":"https://github.com/mattn","followers_url":"https://api.github.com/users/mattn/followers","following_url":"https://api.github.com/users/mattn/following{/other_user}","gists_url":"https://api.github.com/users/mattn/gists{/gist_id}","starred_url":"https://api.github.com/users/mattn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattn/subscriptions","organizations_url":"https://api.github.com/users/mattn/orgs","repos_url":"https://api.github.com/users/mattn/repos","events_url":"https://api.github.com/users/mattn/events{/privacy}","received_events_url":"https://api.github.com/users/mattn/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T16:27:24Z","updated_at":"2015-08-25T16:27:24Z","body":"with my fix\r\n\r\n![](https://i.gyazo.com/2b995dc9cda36fc6e1b59136c883cba4.png)"}}