diff --git a/CHANGELOG.md b/CHANGELOG.md index 57d9557..f0fdbcf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,14 @@ # Changelog All notable changes to this project will be documented in this file. +## [2.15.1] - 2024-07-19 +### Changes +- Fix on "Build with" link. +- Adds web version announcement. + ## [2.15.0] - 2024-04-27 ### Added -- Support for hosted GitHub variants with non-standard domains (e.g., GitHub Enterprise) +- Support for hosted GitHub variants with non-standard domains (e.g., GitHub Enterprise). ## [2.14.0] - 2024-03-03 ### Added diff --git a/README.md b/README.md index f6e1db0..9fa35e9 100644 --- a/README.md +++ b/README.md @@ -149,13 +149,13 @@ and print a table like this: | | User | Total comments | Total reviews | Median time to review | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- | ------------------------- | ------------------ | ------------------- | -| | manuelmhtr
šŸ„‡ | **12**
ā–€ā–€ā–€ā–€ā–€ā–€ā–€ā–€ | **8**
ā–€ā–€ā–€ā–€ | 53m
| -| | jartmez
šŸ„ˆ | 3
ā–€ā–€ | 4
ā–€ā–€ | 58m
| -| | JohanAlvarado
šŸ„‰ | 1
ā–€ | 2
ā–€ | 1d 16h 18m
ā–€ā–€ā–€ā–€ā–€ā–€ | -| | Estebes10
| 1
ā–€ | 1
| **19m**
| -| | ernestognw
| 0
| 2
ā–€ | 2h 15m
| -| | Phaze1D
| 0
| 3
ā–€ | 1h 28m
| -| | javierbyte
| 0
| 1
| 21h 24m
ā–€ā–€ā–€ | +| | manuelmhtr
šŸ„‡ | **12**
ā–€ā–€ā–€ā–€ā–€ā–€ā–€ā–€ | **8**
ā–€ā–€ā–€ā–€ | 53m
| +| | CarlosCRG19
šŸ„ˆ | 3
ā–€ā–€ | 4
ā–€ā–€ | 58m
| +| | jartmez
šŸ„‰ | 1
ā–€ | 2
ā–€ | 1d 16h 18m
ā–€ā–€ā–€ā–€ā–€ā–€ | +| | Estebes10
| 1
ā–€ | 1
| **19m**
| +| | ernestognw
| 0
| 2
ā–€ | 2h 15m
| +| | Phaze1D
| 0
| 3
ā–€ | 1h 28m
| +| | javierbyte
| 0
| 1
| 21h 24m
ā–€ā–€ā–€ | ## Stats @@ -265,16 +265,18 @@ This project is maintained by a small team, considering supporting the project b * Joining the [community](https://discord.gg/wk5zy5aAZQ). * Becoming a [sponsor](https://github.com/sponsors/manuelmhtr). -## NEW: We are building the web version! āš” +## NEW: Check the web version! āš” -![](/assets/web-banner.png) +![](/assets/web-preview.png) -Exciting News! After receiving numerous requests from developers, we're actively developing a stand-alone version of this action! +Exciting News! After receiving numerous requests from developers, we launched a stand-alone version of this action! -**Get early access** by filling out [this form](https://c4tj3h4y5wh.typeform.com/to/Ejo56p27). - -Psst! Current sponsors will receive early access and free premium feature for a limited time šŸ¤« +* Filter by repositories and date range. +* Stats tracking over the time. +* Tons of new features coming soon! +![](/assets/signup-btn.png) +[Sign up to Flowwer](https://app.flowwer.dev) ## License diff --git a/assets/signup-btn.png b/assets/signup-btn.png new file mode 100644 index 0000000..14e0c0a Binary files /dev/null and b/assets/signup-btn.png differ diff --git a/assets/web-preview.png b/assets/web-preview.png new file mode 100644 index 0000000..abd70b9 Binary files /dev/null and b/assets/web-preview.png differ diff --git a/package.json b/package.json index 518cd5a..919d739 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pull-request-stats", - "version": "2.15.0", + "version": "2.15.1", "description": "Github action to print relevant stats about Pull Request reviewers", "main": "dist/index.js", "type": "commonjs", diff --git a/src/execute.js b/src/execute.js index 289d8e8..2dfb6b7 100644 --- a/src/execute.js +++ b/src/execute.js @@ -1,5 +1,6 @@ const core = require('@actions/core'); const github = require('@actions/github'); +const { t } = require('./i18n'); const { subtractDaysToDate } = require('./utils'); const { Telemetry } = require('./services'); const { fetchPullRequestById } = require('./fetchers'); @@ -102,7 +103,7 @@ module.exports = async (params) => { const octokit = github.getOctokit(githubToken, { baseUrl: getGithubApiUrl() }); const isSponsor = await checkSponsorship({ octokit, org, repos }); const telemetry = new Telemetry({ core, isSponsor, telemetry: params.telemetry }); - if (isSponsor) core.info('Thanks for sponsoring this project! šŸ’™'); + if (isSponsor) core.info(t('execution.logs.sponsors')); try { telemetry.start(params); diff --git a/src/i18n/locales/en-US/execution.json b/src/i18n/locales/en-US/execution.json index a135357..bceef1e 100644 --- a/src/i18n/locales/en-US/execution.json +++ b/src/i18n/locales/en-US/execution.json @@ -1,7 +1,8 @@ { "logs": { "success": "Action successfully executed", - "news": "\nāœØ New on v2.6:\nā€¢ Microsoft Teams integration\nā€¢ Slack integration\nā€¢ Webhooks integration" + "news": "\nāœØ New web version released! https://app.flowwer.dev", + "sponsors": "Thanks for sponsoring this project! šŸ’™" }, "sponsors": { "external": { diff --git a/src/interactors/__tests__/buildComment.test.js b/src/interactors/__tests__/buildComment.test.js index f3c3372..3dfd27b 100644 --- a/src/interactors/__tests__/buildComment.test.js +++ b/src/interactors/__tests__/buildComment.test.js @@ -21,7 +21,7 @@ describe('Interactors | .buildComment', () => { it('builds an environment-specific comment using this URL', () => { process.env.GITHUB_SERVER_URL = 'https://github.example.io'; - const expected = `${title}\n${message}\n${TABLE_MOCK}\n${FOOTER}`; + const expected = `${title}\n${message}\n${TABLE_MOCK}\n\n${FOOTER}`; const response = buildComment({ periodLength, table: TABLE_MOCK, org: ORG }); delete process.env.GITHUB_SERVER_URL; expect(response).toEqual(expected); diff --git a/src/interactors/buildComment.js b/src/interactors/buildComment.js index a460ac3..6b8c7ec 100644 --- a/src/interactors/buildComment.js +++ b/src/interactors/buildComment.js @@ -13,6 +13,6 @@ module.exports = ({ }) => { const sources = buildSources({ buildGithubLink, org, repos }); const message = t('table.subtitle', { sources, count: periodLength }); - const footer = isSponsor ? '' : `\n${t('table.footer')}`; + const footer = isSponsor ? '' : `\n\n${t('table.footer')}`; return `## ${t('table.title')}\n${message}:\n${table}${footer}`; };