lib/Github/Api/PullRequest/Review.php
public function dismiss($username, $repository, $pullRequest, $id, $message)
    {
        if (!is_string($message)) {
            throw new InvalidArgumentException(sprintf('"message" must be a valid string ("%s" given).', gettype($message)));
        }

        if (empty($message)) {
            throw new InvalidArgumentException('"message" is mandatory and cannot be empty');
        }

        return $this->put('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls/'.$pullRequest.'/reviews/'.$id.'/dismissals', [
          'message' => $message,
        ]);
    }
public function dismiss($username, $repository, $pullRequest, $id, $message)
    {
        if (!is_string($message)) {
            throw new InvalidArgumentException(sprintf('"message" must be a valid string ("%s" given).', gettype($message)));
        }

        if (empty($message)) {
            throw new InvalidArgumentException('"message" is mandatory and cannot be empty');
        }

        return $this->put('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls/'.$pullRequest.'/reviews/'.$id.'/dismissals', [
          'message' => $message,
        ]);
    }
public function dismiss ( $ username , $ repository , $ pullRequest , $ id , $ message ) { if ( ! is_string ( $ message ) ) { throw new InvalidArgumentException ( sprintf ( '"message" must be a valid string ("%s" given).' , gettype ( $ message ) ) ) ; } if ( empty ( $ message ) ) { throw new InvalidArgumentException ( '"message" is mandatory and cannot be empty' ) ; } return $ this -> put ( '/repos/' . rawurlencode ( $ username ) . '/' . rawurlencode ( $ repository ) . '/pulls/' . $ pullRequest . '/reviews/' . $ id . '/dismissals' , [ 'message' => $ message , ] ) ; }
Dismiss a pull request review by the username, repository, pull request number and the review id.

@link https://developer.github.com/v3/pulls/reviews/#dismiss-a-pull-request-review

@param string $username    the username
@param string $repository  the repository
@param int    $pullRequest the pull request number
@param int    $id          the review id
@param string $message     a mandatory dismissal message

@return array|string
Dismiss a pull request review by the username repository pull request number and the review id .