{"action":"created","issue":{"url":"https://api.github.com/repos/octokit/octokit.net/issues/1098","repository_url":"https://api.github.com/repos/octokit/octokit.net","labels_url":"https://api.github.com/repos/octokit/octokit.net/issues/1098/labels{/name}","comments_url":"https://api.github.com/repos/octokit/octokit.net/issues/1098/comments","events_url":"https://api.github.com/repos/octokit/octokit.net/issues/1098/events","html_url":"https://github.com/octokit/octokit.net/issues/1098","id":132088584,"number":1098,"title":"Creating a branch","user":{"login":"M-Zuber","id":4746537,"avatar_url":"https://avatars.githubusercontent.com/u/4746537?v=3","gravatar_id":"","url":"https://api.github.com/users/M-Zuber","html_url":"https://github.com/M-Zuber","followers_url":"https://api.github.com/users/M-Zuber/followers","following_url":"https://api.github.com/users/M-Zuber/following{/other_user}","gists_url":"https://api.github.com/users/M-Zuber/gists{/gist_id}","starred_url":"https://api.github.com/users/M-Zuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/M-Zuber/subscriptions","organizations_url":"https://api.github.com/users/M-Zuber/orgs","repos_url":"https://api.github.com/users/M-Zuber/repos","events_url":"https://api.github.com/users/M-Zuber/events{/privacy}","received_events_url":"https://api.github.com/users/M-Zuber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-08T09:19:04Z","updated_at":"2016-02-09T07:31:23Z","closed_at":null,"body":"Currently (and this is per the API) there is no comfortable way to create a branch.\r\nYou have to do something like the following:\r\n```c#\r\nvar master = await client.Git.Reference.Get(Helper.UserName, repository.Name, \"heads/master\");\r\nawait client.Git.Reference.Create(Helper.UserName, repository.Name, new NewReference(\"refs/heads/\" + branchName, master.Object.Sha));\r\n```\r\n\r\nIs there room to consider creating a wrapper for this?\r\n\r\nIf so, is there also a way to cut down on the calls? Or would it just be for the users convenience?"},"comment":{"url":"https://api.github.com/repos/octokit/octokit.net/issues/comments/181745430","html_url":"https://github.com/octokit/octokit.net/issues/1098#issuecomment-181745430","issue_url":"https://api.github.com/repos/octokit/octokit.net/issues/1098","id":181745430,"user":{"login":"M-Zuber","id":4746537,"avatar_url":"https://avatars.githubusercontent.com/u/4746537?v=3","gravatar_id":"","url":"https://api.github.com/users/M-Zuber","html_url":"https://github.com/M-Zuber","followers_url":"https://api.github.com/users/M-Zuber/followers","following_url":"https://api.github.com/users/M-Zuber/following{/other_user}","gists_url":"https://api.github.com/users/M-Zuber/gists{/gist_id}","starred_url":"https://api.github.com/users/M-Zuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/M-Zuber/subscriptions","organizations_url":"https://api.github.com/users/M-Zuber/orgs","repos_url":"https://api.github.com/users/M-Zuber/repos","events_url":"https://api.github.com/users/M-Zuber/events{/privacy}","received_events_url":"https://api.github.com/users/M-Zuber/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T07:31:23Z","updated_at":"2016-02-09T07:31:23Z","body":"Is there a file for such extensions? \r\nIf not where do I put it? "}}