public function unprotect() { $data = $this->api('repositories')->unprotectBranch($this->project->id, $this->name); return static::fromArray($this->getClient(), $this->project, $data); }
/** * @param string $branch_name * @return Branch */ public function unprotectBranch($branch_name) { $branch = new Branch($this, $branch_name); $branch->setClient($this->getClient()); return $branch->unprotect(); }