diff --git a/.houston/metadata.js b/.houston/metadata.js index 34de398bc857..df78a54991e5 100644 --- a/.houston/metadata.js +++ b/.houston/metadata.js @@ -36,8 +36,24 @@ const getNodeNpmVersions = async function({ version, git, request }) { return {}; }; +const getAppsEngineVersion = async function({ version, git }) { + try { + const packageJson = await git.show([`${ version }:package-lock.json`]); + const { dependencies } = JSON.parse(packageJson); + const { version: appsEngineVersion } = dependencies['@rocket.chat/apps-engine']; + + return appsEngineVersion; + } catch (e) { + console.error(e); + } + + return undefined; +}; + module.exports = async function({ version, git, request }) { const mongo_versions = await getMongoVersion({ version, git }); + const apps_engine_version = await getAppsEngineVersion({ version, git }); + const { node_version, npm_version, @@ -46,6 +62,8 @@ module.exports = async function({ version, git, request }) { return { node_version, npm_version, + apps_engine_version, mongo_versions, }; }; + diff --git a/.houston/templates/versions.hbs b/.houston/templates/versions.hbs index 8ee2a4f98551..46da32d49ed4 100644 --- a/.houston/templates/versions.hbs +++ b/.houston/templates/versions.hbs @@ -10,4 +10,7 @@ {{#if release.mongo_versions}} - MongoDB: `{{ join release.mongo_versions ', ' }}` {{/if}} +{{#if release.apps_engine_version}} +- Apps-Engine: `{{ release.apps_engine_version }}` +{{/if}} {{/if}}