src/sb/Gitlab/Project.php
public function issueCreate($title, $description, $assignee_email, $labels='') {
        
        $post = [
            'id' => $this->id,
            'title' => $title,
            'description' => $description
        ];
        
        if($assignee_email){
            $user = new \sb\Gitlab\User($assignee_email, $this->_client);
            $post['assignee_id']= $user->id;
        }
        
       $response = $this->_client->get('/projects/'.$this->id.'/issues',$post);
       if($response){
           return \sb\Gitlab\Issue::fromObject($response);
       }
    }
public function issueCreate($title, $description, $assignee_email, $labels='') {
        
        $post = [
            'id' => $this->id,
            'title' => $title,
            'description' => $description
        ];
        
        if($assignee_email){
            $user = new \sb\Gitlab\User($assignee_email, $this->_client);
            $post['assignee_id']= $user->id;
        }
        
       $response = $this->_client->get('/projects/'.$this->id.'/issues',$post);
       if($response){
           return \sb\Gitlab\Issue::fromObject($response);
       }
    }
public function issueCreate ( $ title , $ description , $ assignee_email , $ labels = '' ) { $ post = [ 'id' => $ this -> id , 'title' => $ title , 'description' => $ description ] ; if ( $ assignee_email ) { $ user = new \ sb \ Gitlab \ User ( $ assignee_email , $ this -> _client ) ; $ post [ 'assignee_id' ] = $ user -> id ; } $ response = $ this -> _client -> get ( '/projects/' . $ this -> id . '/issues' , $ post ) ; if ( $ response ) { return \ sb \ Gitlab \ Issue :: fromObject ( $ response ) ; } }
Adds an issue to a git repository
@param string $title
@param string $description
@param string $assignee_email
@return \Gitlab\Model\Issue
@throws \Exception
Adds an issue to a git repository