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
f035a205
Unverified
Commit
f035a205
authored
2 years ago
by
Diego Sampaio
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Chore: Fix fetching Apps-Engine and MongoDB versions for release notes (#28129)
parent
5bfcab04
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.houston/metadata.js
+11
-6
11 additions, 6 deletions
.houston/metadata.js
with
11 additions
and
6 deletions
.houston/metadata.js
+
11
−
6
View file @
f035a205
const
{
execSync
}
=
require
(
'
child_process
'
);
const
getMongoVersion
=
async
function
({
version
,
git
})
{
const
getMongoVersion
=
async
function
({
version
,
git
})
{
try
{
try
{
const
workflows
=
await
git
.
show
([
`
${
version
}
:.github/workflows/
build_and_test
.yml`
]);
const
workflows
=
await
git
.
show
([
`
${
version
}
:.github/workflows/
ci
.yml`
]);
const
mongoMatch
=
workflows
.
match
(
/
mongodb
\-
v
ersion:
\[([^\]]
+
)\]
/
);
const
mongoMatch
=
workflows
.
match
(
/
compatibleMongoV
ersion
s
\\
"
:
\[([^\]]
+
)\]
/
);
if
(
!
mongoMatch
)
{
if
(
!
mongoMatch
)
{
return
[];
return
[];
}
}
...
@@ -38,11 +40,14 @@ const getNodeNpmVersions = async function({ version, git, request }) {
...
@@ -38,11 +40,14 @@ const getNodeNpmVersions = async function({ version, git, request }) {
const
getAppsEngineVersion
=
async
function
({
version
,
git
})
{
const
getAppsEngineVersion
=
async
function
({
version
,
git
})
{
try
{
try
{
const
packageJson
=
await
git
.
show
([
`
${
version
}
:apps/meteor/package-lock.
json
`
]
);
const
result
=
execSync
(
'
yarn why @rocket.chat/apps-engine --
json
'
);
const
{
dependencies
}
=
JSON
.
parse
(
packageJson
);
const
{
version
:
appsEngineVersion
}
=
dependencies
[
'
@rocket.chat/apps-engine
'
]
;
const
resultString
=
result
.
toString
()
;
return
appsEngineVersion
;
const
match
=
resultString
.
match
(
/"@rocket.chat
\/
meteor@workspace:apps
\/
meteor".*"@rocket
\.
chat
\/
apps
\-
engine@npm:
([^
"
]
+
)
"/
);
if
(
match
)
{
return
match
[
1
];
}
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
error
(
e
);
console
.
error
(
e
);
}
}
...
...
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