Skip to content
Snippets Groups Projects
Unverified Commit 62a7ffc2 authored by Douglas Gubert's avatar Douglas Gubert Committed by GitHub
Browse files

Add Apps-Engine to Engine Versions on History (#17810)

parent 68d25770
No related branches found
No related tags found
No related merge requests found
...@@ -36,8 +36,24 @@ const getNodeNpmVersions = async function({ version, git, request }) { ...@@ -36,8 +36,24 @@ const getNodeNpmVersions = async function({ version, git, request }) {
return {}; 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 }) { module.exports = async function({ version, git, request }) {
const mongo_versions = await getMongoVersion({ version, git }); const mongo_versions = await getMongoVersion({ version, git });
const apps_engine_version = await getAppsEngineVersion({ version, git });
const { const {
node_version, node_version,
npm_version, npm_version,
...@@ -46,6 +62,8 @@ module.exports = async function({ version, git, request }) { ...@@ -46,6 +62,8 @@ module.exports = async function({ version, git, request }) {
return { return {
node_version, node_version,
npm_version, npm_version,
apps_engine_version,
mongo_versions, mongo_versions,
}; };
}; };
...@@ -10,4 +10,7 @@ ...@@ -10,4 +10,7 @@
{{#if release.mongo_versions}} {{#if release.mongo_versions}}
- MongoDB: `{{ join release.mongo_versions ', ' }}` - MongoDB: `{{ join release.mongo_versions ', ' }}`
{{/if}} {{/if}}
{{#if release.apps_engine_version}}
- Apps-Engine: `{{ release.apps_engine_version }}`
{{/if}}
{{/if}} {{/if}}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment