diff --git a/dist/index.js b/dist/index.js index f7522ec..4be3953 100644 --- a/dist/index.js +++ b/dist/index.js @@ -42506,7 +42506,7 @@ const { getGithubServerUrl } = __nccwpck_require__(5343); const buildGithubLink = ({ description, path }) => `[${description}](${getGithubServerUrl()}/${path})`; module.exports = ({ - table, + markdownTable, org, repos, isSponsor, @@ -42515,7 +42515,7 @@ module.exports = ({ const sources = buildSources({ buildGithubLink, org, repos }); const message = t('table.subtitle', { sources, count: periodLength }); const footer = isSponsor ? '' : `\n\n${t('table.footer')}`; - return `## ${t('table.title')}\n${message}:\n${table}${footer}`; + return `## ${t('table.title')}\n${message}:\n${markdownTable}${footer}`; }; diff --git a/src/interactors/__tests__/buildComment.test.js b/src/interactors/__tests__/buildComment.test.js index 7d9f2e7..a1d04f0 100644 --- a/src/interactors/__tests__/buildComment.test.js +++ b/src/interactors/__tests__/buildComment.test.js @@ -22,7 +22,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\n${FOOTER}`; - const response = buildComment({ periodLength, table: TABLE_MOCK, org: ORG }); + const response = buildComment({ periodLength, markdownTable: TABLE_MOCK, org: ORG }); delete process.env.GITHUB_SERVER_URL; expect(response).toEqual(expected); }); @@ -34,7 +34,7 @@ describe('Interactors | .buildComment', () => { it('builds the message in singular', () => { const expected = `${title}\n${message}\n${TABLE_MOCK}\n\n${FOOTER}`; - const response = buildComment({ periodLength, table: TABLE_MOCK, org: ORG }); + const response = buildComment({ periodLength, markdownTable: TABLE_MOCK, org: ORG }); expect(response).toEqual(expected); }); }); @@ -45,7 +45,7 @@ describe('Interactors | .buildComment', () => { it('builds the message in singular', () => { const expected = `${title}\n${message}\n${TABLE_MOCK}\n\n${FOOTER}`; - const response = buildComment({ periodLength, table: TABLE_MOCK, org: ORG }); + const response = buildComment({ periodLength, markdownTable: TABLE_MOCK, org: ORG }); expect(response).toEqual(expected); }); }); @@ -57,7 +57,7 @@ describe('Interactors | .buildComment', () => { it('builds the message in singular', () => { const expected = `${title}\n${message}\n${TABLE_MOCK}\n\n${FOOTER}`; - const response = buildComment({ periodLength, table: TABLE_MOCK, repos }); + const response = buildComment({ periodLength, markdownTable: TABLE_MOCK, repos }); expect(response).toEqual(expected); }); }); @@ -73,7 +73,7 @@ describe('Interactors | .buildComment', () => { isSponsor, periodLength, org: ORG, - table: TABLE_MOCK, + markdownTable: TABLE_MOCK, }); expect(response).toEqual(expected); }); diff --git a/src/interactors/buildComment.js b/src/interactors/buildComment.js index 6b8c7ec..267b5bd 100644 --- a/src/interactors/buildComment.js +++ b/src/interactors/buildComment.js @@ -5,7 +5,7 @@ const { getGithubServerUrl } = require('../config'); const buildGithubLink = ({ description, path }) => `[${description}](${getGithubServerUrl()}/${path})`; module.exports = ({ - table, + markdownTable, org, repos, isSponsor, @@ -14,5 +14,5 @@ module.exports = ({ const sources = buildSources({ buildGithubLink, org, repos }); const message = t('table.subtitle', { sources, count: periodLength }); const footer = isSponsor ? '' : `\n\n${t('table.footer')}`; - return `## ${t('table.title')}\n${message}:\n${table}${footer}`; + return `## ${t('table.title')}\n${message}:\n${markdownTable}${footer}`; };