lib/Github/Api/Issue/Labels.php
public function update($username, $repository, $label, $newName, $color)
    {
        $params = [
            'name'  => $newName,
            'color' => $color,
        ];

        return $this->patch('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/labels/'.rawurlencode($label), $params);
    }
public function update($username, $repository, $label, $newName, $color)
    {
        $params = [
            'name'  => $newName,
            'color' => $color,
        ];

        return $this->patch('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/labels/'.rawurlencode($label), $params);
    }
public function update ( $ username , $ repository , $ label , $ newName , $ color ) { $ params = [ 'name' => $ newName , 'color' => $ color , ] ; return $ this -> patch ( '/repos/' . rawurlencode ( $ username ) . '/' . rawurlencode ( $ repository ) . '/labels/' . rawurlencode ( $ label ) , $ params ) ; }
Edit a label for a repository.

@link https://developer.github.com/v3/issues/labels/#update-a-label

@param string $username
@param string $repository
@param string $label
@param string $newName
@param string $color

@return array
Edit a label for a repository .