Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core monthly related improvements #305

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/App/Command/GitHubMonthlyReportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ class GitHubMonthlyReportCommand extends Command
'PM',
];

private const AUTHORS_REJECT_LIST = [
'dependabot',
];

private const CORE_BRANCHES = [
'9.0.x',
'develop',
'8.1.x',
'8.0.x',
'8.2.x',
'1.7.8.x',
];

Expand Down Expand Up @@ -234,7 +238,7 @@ private function searchForPullRequests(): void
$branchName = $this->extractInformationFromBody($body, 'Branch');
$category = $this->extractInformationFromBody($body, 'Category');

if (in_array($category, self::CATEGORIES_REJECT_LIST)) {
if (in_array($category, self::CATEGORIES_REJECT_LIST) || in_array($pullRequest['author']['login'], self::AUTHORS_REJECT_LIST)) {
continue;
}

Expand Down
6 changes: 6 additions & 0 deletions src/App/Service/PrestaShop/RepositoryNameConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ class RepositoryNameConverter
'ps-project-metrics' => 'PrestaShop Project Metrics',
'ps_distributionapiclient' => 'Distribution API Client',
'ps-monitor-module-releases' => 'Module Releases Monitor',
'prestashop-flashlight' => 'PrestaShop Flashlight',
'LocalizationFiles' => 'Localization Files',
'ps_apiresources' => 'API Resources',
'ps_fixturescreator' => 'Fixtures Creator',
'SeamlessUpgradeToolbox' => 'Seamless Upgrade Toolbox',
'ui-testing-library' => 'UI Testing Library',
];

public function __construct()
Expand Down
Loading