public function listRepositoryIssues(string $milestone = '*', string $state = AbstractApi::STATE_OPEN,
                                         string $assignee = '*', string $creator = '', string $mentioned = '',
                                         string $labels = '', string $sort = AbstractApi::SORT_CREATED,
                                         string $direction = AbstractApi::DIRECTION_DESC,
                                         string $since = '1970-01-01'): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/issues?:args', $this->getOwner(),
            $this->getRepo(), http_build_query([
                'milestone' => $milestone,
                'state'     => $state,
                'assignee'  => $assignee,
                'creator'   => $creator,
                'mentioned' => $mentioned,
                'labels'    => $labels,
                'sort'      => $sort,
                'direction' => $direction,
                'since'     => (new DateTime($since))->format(DateTime::ATOM)
            ])));
    }