Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed May 13, 2021
1 parent f61567b commit 9e1ff34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Api/Issue/GithubIssueApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function open(Repository $repository, string $title, string $body, array
];

$issueNumber = null;
$existingIssues = $this->searchApi->issues(sprintf('repo:%s "%s" is:open author:%s', $repository->getFullName(), $title, $this->botUsername), 'updated', 'desc', ['per_page'=>100]);
$existingIssues = $this->searchApi->issues(sprintf('repo:%s "%s" is:open author:%s', $repository->getFullName(), $title, $this->botUsername), 'updated', 'desc', ['per_page' => 100]);
foreach ($existingIssues['items'] ?? [] as $issue) {
$issueNumber = $issue['number'];
}
Expand Down Expand Up @@ -109,7 +109,7 @@ public function commentOnIssue(Repository $repository, $issueNumber, string $com

public function findStaleIssues(Repository $repository, \DateTimeImmutable $noUpdateAfter): array
{
$issues = $this->searchApi->issues(sprintf('repo:%s is:issue -label:"Keep open" is:open updated:<%s', $repository->getFullName(), $noUpdateAfter->format('Y-m-d')), 'updated', 'desc', ['per_page'=>100]);
$issues = $this->searchApi->issues(sprintf('repo:%s is:issue -label:"Keep open" is:open updated:<%s', $repository->getFullName(), $noUpdateAfter->format('Y-m-d')), 'updated', 'desc', ['per_page' => 100]);

return $issues['items'] ?? [];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Api/PullRequest/GithubPullRequestApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function findReviewer(Repository $repository, $number, string $type)

public function getAuthorCount(Repository $repository, string $author): int
{
$result = $this->search->issues(sprintf('is:pr repo:%s author:%s', $repository->getFullName(), $author), 'updated', 'desc', ['per_page'=>100]);
$result = $this->search->issues(sprintf('is:pr repo:%s author:%s', $repository->getFullName(), $author), 'updated', 'desc', ['per_page' => 100]);

return $result['total_count'];
}
Expand Down

0 comments on commit 9e1ff34

Please sign in to comment.