Skip to content

Commit

Permalink
Merge pull request #36 from matks/update-review-track
Browse files Browse the repository at this point in the history
Update github query parameters for waiting for review PRs
  • Loading branch information
matks committed Apr 15, 2022
2 parents bba8a9e + 7b8cf9f commit de71973
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Helper/PRStatsHelper.php
Expand Up @@ -27,7 +27,7 @@ public static function getTypesWithUrls(bool $outputApiUrl = true): array
}

$mapping = [
PRWaitingStat::PR_WAITING_FOR_REVIEW => 'q=org%3APrestaShop+is%3Apr+is%3Aopen+review%3Arequired+archived%3Afalse',
PRWaitingStat::PR_WAITING_FOR_REVIEW => 'q=org%3APrestaShop+is%3Apr+is%3Aopen+-label%3A%22waiting+for+QA%22+-label%3A%22waiting+for+UX%22+-label%3A%22waiting+for+author%22+-label%3A%22waiting+for+PM%22+-label%3A%22waiting+for+rebase%22+-label%3A%22QA+%E2%9C%94%EF%B8%8F%22+-label%3AWIP+archived%3Afalse+-repo%3Aprestashop%2Fprestashop-specs+draft%3Afalse',
PRWaitingStat::PR_WAITING_FOR_QA => 'q=org%3APrestaShop+is%3Apr+is%3Aopen+label%3A"Waiting+for+QA"+archived%3Afalse',
PRWaitingStat::PR_WAITING_FOR_PM => 'q=org%3APrestaShop+is%3Apr+is%3Aopen+label%3A"Waiting+for+PM"+archived%3Afalse',
PRWaitingStat::PR_WAITING_FOR_DEV => 'q=org%3APrestaShop+is%3Apr+is%3Aopen+label%3A"Waiting+for+dev"+archived%3Afalse+sort%3Aupdated-asc',
Expand Down
2 changes: 1 addition & 1 deletion src/Helper/PRWaitingReviewStatusRecordService.php
Expand Up @@ -43,7 +43,7 @@ public function __construct(string $githubToken, EntityManager $entityManager)
*/
public static function getURL($forAPI = false): string
{
$filters = 'q=is%3Aopen+is%3Apr+org%3APrestaShop+is%3Apr+is%3Aopen+review%3Arequired+draft%3Afalse+-label%3A%22Waiting+for+author%22+';
$filters = 'https://github.com/pulls?page=1&q=org%3APrestaShop+is%3Apr+is%3Aopen+-label%3A%22waiting+for+QA%22+-label%3A%22waiting+for+UX%22+-label%3A%22waiting+for+author%22+-label%3A%22waiting+for+PM%22+-label%3A%22waiting+for+rebase%22+-label%3A%22QA+%E2%9C%94%EF%B8%8F%22+-label%3AWIP+archived%3Afalse+-repo%3Aprestashop%2Fprestashop-specs+draft%3Afalse';

if ($forAPI) {
return 'https://api.github.com/search/issues?per_page=100&' . $filters;
Expand Down

0 comments on commit de71973

Please sign in to comment.