lib/GitHub/Receiver/Issues/Labels.php
public function updateLabel(string $name, string $color): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/labels/:name',
            $this->getIssues()->getOwner(), $this->getIssues()->getRepo(), $name), Request::METHOD_PATCH, [
                'color' => $color
            ]);
    }
public function updateLabel(string $name, string $color): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/labels/:name',
            $this->getIssues()->getOwner(), $this->getIssues()->getRepo(), $name), Request::METHOD_PATCH, [
                'color' => $color
            ]);
    }
public function updateLabel ( string $ name , string $ color ) : array { return $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/repos/:owner/:repo/labels/:name' , $ this -> getIssues ( ) -> getOwner ( ) , $ this -> getIssues ( ) -> getRepo ( ) , $ name ) , Request :: METHOD_PATCH , [ 'color' => $ color ] ) ; }
Update a label

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

@param string $name
@param string $color

@return array
Update a label