Skip to content

Commit

Permalink
feat: hardcode installplan for codestream
Browse files Browse the repository at this point in the history
  • Loading branch information
rudouglas committed Oct 18, 2021
1 parent f1bc742 commit e24d6e5
Show file tree
Hide file tree
Showing 2 changed files with 2,429 additions and 1,897 deletions.
15 changes: 12 additions & 3 deletions scripts/actions/fetch-quickstarts.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,22 @@ const validateEnvVars = () => {
**/
const main = async (query, url, token) => {
const CODESTREAM_QUICKSTART_ID = '29bd9a4a-1c19-4219-9694-0942f6411ce7';
const CODESTREAM_INSTALL_PLAN = [
{
id: 'codestream-install',
name: 'CodeStream integration',
},
];
const results = await fetchQuickstarts(query, url, token);

if (results) {
// TODO: remove filter once we are ready to display codestream quickstart
const quickstarts = results.quickstarts.filter(
(q) => q.id !== CODESTREAM_QUICKSTART_ID
);
const quickstarts = results.quickstarts.map((q) => {
if (q.id === CODESTREAM_QUICKSTART_ID) {
q.installPlans = CODESTREAM_INSTALL_PLAN;
}
return q;
});
console.log(`Found ${quickstarts.length} quickstarts.`);
console.log(`Writing ${QUICKSTARTS_FILE_PATH}`);
fs.writeFileSync(
Expand Down
Loading

0 comments on commit e24d6e5

Please sign in to comment.