public function edit($owner, $repo, $name, $description = '', $homepage = '', $private = false, $has_issues = false,
		$has_wiki = false, $has_downloads = false, $default_branch = '')
	{
		$path = '/repos/' . $owner . '/' . $repo;

		$data = array(
			'name'           => $name,
			'description'    => $description,
			'homepage'       => $homepage,
			'private'        => $private,
			'has_issues'     => $has_issues,
			'has_wiki'       => $has_wiki,
			'has_downloads'  => $has_downloads,
			'default_branch' => $default_branch
		);

		// Send the request.
		return $this->processResponse(
			$this->client->patch($this->fetchUrl($path), json_encode($data))
		);
	}
public function edit($owner, $repo, $name, $description = '', $homepage = '', $private = false, $has_issues = false,
		$has_wiki = false, $has_downloads = false, $default_branch = '')
	{
		$path = '/repos/' . $owner . '/' . $repo;

		$data = array(
			'name'           => $name,
			'description'    => $description,
			'homepage'       => $homepage,
			'private'        => $private,
			'has_issues'     => $has_issues,
			'has_wiki'       => $has_wiki,
			'has_downloads'  => $has_downloads,
			'default_branch' => $default_branch
		);

		// Send the request.
		return $this->processResponse(
			$this->client->patch($this->fetchUrl($path), json_encode($data))
		);
	}
public function edit ( $ owner , $ repo , $ name , $ description = '' , $ homepage = '' , $ private = false , $ has_issues = false , $ has_wiki = false , $ has_downloads = false , $ default_branch = '' ) { $ path = '/repos/' . $ owner . '/' . $ repo ; $ data = array ( 'name' => $ name , 'description' => $ description , 'homepage' => $ homepage , 'private' => $ private , 'has_issues' => $ has_issues , 'has_wiki' => $ has_wiki , 'has_downloads' => $ has_downloads , 'default_branch' => $ default_branch ) ; // Send the request. return $ this -> processResponse ( $ this -> client -> patch ( $ this -> fetchUrl ( $ path ) , json_encode ( $ data ) ) ) ; }
Edit a repository.

@param   string   $owner           Repository owner.
@param   string   $repo            Repository name.
@param   string   $name            The repository name.
@param   string   $description     The repository description.
@param   string   $homepage        The repository homepage.
@param   boolean  $private         Set true to create a private repository, false to create a public one.
Creating private repositories requires a paid GitHub account.
@param   boolean  $has_issues      Set true to enable issues for this repository, false to disable them.
@param   boolean  $has_wiki        Set true to enable the wiki for this repository, false to disable it.
@param   boolean  $has_downloads   Set true to enable downloads for this repository, false to disable them.
@param   string   $default_branch  Update the default branch for this repository

@return  object

@since   1.0
Edit a repository .