lib/GitHub/Receiver/Issues.php
public function createIssue(string $title, string $body = '', string $assignee = '', int $milestone = 0,
                                array $labels = []): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/issues', $this->getOwner(),
            $this->getRepo()), Request::METHOD_POST, [
                'title'     => $title,
                'body'      => $body,
                'assignee'  => $assignee,
                'milestone' => $milestone,
                'labels'    => $labels
            ]);
    }
public function createIssue(string $title, string $body = '', string $assignee = '', int $milestone = 0,
                                array $labels = []): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/issues', $this->getOwner(),
            $this->getRepo()), Request::METHOD_POST, [
                'title'     => $title,
                'body'      => $body,
                'assignee'  => $assignee,
                'milestone' => $milestone,
                'labels'    => $labels
            ]);
    }
public function createIssue ( string $ title , string $ body = '' , string $ assignee = '' , int $ milestone = 0 , array $ labels = [ ] ) : array { return $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/repos/:owner/:repo/issues' , $ this -> getOwner ( ) , $ this -> getRepo ( ) ) , Request :: METHOD_POST , [ 'title' => $ title , 'body' => $ body , 'assignee' => $ assignee , 'milestone' => $ milestone , 'labels' => $ labels ] ) ; }
Create an issue

@link https://developer.github.com/v3/issues/#create-an-issue

@param string $title
@param string $body
@param string $assignee
@param int    $milestone
@param array  $labels

@return array
Create an issue