public function createBranch($name, $ref) { $data = $this->api('repositories')->createBranch($this->id, $name, $ref); return Branch::fromArray($this->getClient(), $this, $data); }