Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
62a7ffc2
Unverified
Commit
62a7ffc2
authored
4 years ago
by
Douglas Gubert
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add Apps-Engine to Engine Versions on History (#17810)
parent
68d25770
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.houston/metadata.js
+18
-0
18 additions, 0 deletions
.houston/metadata.js
.houston/templates/versions.hbs
+3
-0
3 additions, 0 deletions
.houston/templates/versions.hbs
with
21 additions
and
0 deletions
.houston/metadata.js
+
18
−
0
View file @
62a7ffc2
...
@@ -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
,
};
};
};
};
This diff is collapsed.
Click to expand it.
.houston/templates/versions.hbs
+
3
−
0
View file @
62a7ffc2
...
@@ -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}}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment