Skip to content

Commit 03304a3

Browse files
authored
Merge pull request #437 from kpodemski/improvement/core-monthly
Improvements to Core Monthly generator
2 parents 408caf1 + 90ad64b commit 03304a3

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

src/App/Command/GitHubMonthlyReportCommand.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@ class GitHubMonthlyReportCommand extends Command
3232

3333
private const AUTHORS_REJECT_LIST = [
3434
'dependabot',
35+
'github-actions',
3536
];
3637

3738
private const CORE_BRANCHES = [
38-
'9.0.x',
39+
'9.1.x',
3940
'develop',
41+
'9.0.x',
4042
'8.2.x',
41-
'1.7.8.x',
4243
];
4344

4445
private const IGNORED_REPOSITORIES = '-repo:prestashop/prestashop.github.io';
@@ -312,12 +313,8 @@ private function searchForPullRequests(): void
312313
// Contributors
313314
$contributors = array_unique($contributors);
314315
asort($contributors);
315-
$contributorsFormatted = [];
316-
foreach ($contributors as $contributor) {
317-
$contributorsFormatted[] = '[@' . $contributor . '](https://github.com/' . $contributor . ')';
318-
}
319316

320-
$this->results['contributors'] = implode(', ', $contributorsFormatted);
317+
$this->results['contributors'] = '"' . implode('" "', $contributors) . '"';
321318
$this->results['core_prs'] = $corePullRequestsContent;
322319
$this->results['other_prs'] = $otherPullRequestsContent;
323320
}

var/data/templates/core-monthly.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: post
3-
title: "PrestaShop Core Monthly - {month_name}"
3+
title: "PrestaShop Core Monthly - {month_name} {year}"
44
subtitle: "An inside look at the PrestaShop codebase"
55
date: YYYY-MM-DD
66
authors: [ kpodemski ]
@@ -37,9 +37,13 @@ Dear community,
3737

3838
<hr />
3939

40-
Thank you to the contributors whose pull requests were merged since the last Core Monthly Report: {contributors}!
40+
## Acknowledgments
4141

42-
Thank you to the contributors whose PRs haven't been merged yet! And of course, a big thank you to all those who contribute with issues and comments [on GitHub](https://github.com/PrestaShop/PrestaShop)!
42+
{{< contributors-grid {contributors} >}}
43+
<p><strong>Thank you</strong> to all contributors this month!</p>
44+
45+
Thank you to the contributors whose PRs haven't been merged yet! And of course, a big thank you to all those who contribute with issues and comments <a href="https://github.com/PrestaShop/PrestaShop">on GitHub</a>!
46+
{{< /contributors-grid >}}
4347

4448
Coding is only just one of the ways you can contribute. Here are some ideas on how you can [get involved in the project](https://www.prestashop-project.org/get-involved/).
4549

0 commit comments

Comments
 (0)