Skip to content

Commit

Permalink
docs: add description of updateExpansions helper
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed Oct 2, 2023
1 parent d05b262 commit 0069097
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .evergreen/generate_evergreen_tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ const WINDOWS_SKIP_TAGS = new Set([
const TASKS = [];
const SINGLETON_TASKS = [];

/** Accepts {key: value} -> returns {key, value}[] */
/**
* @param {Record<string, any>} expansions - keys become expansion names and values are stringified and become expansion value.
* @returns {{command: 'expansions.update'; type: 'setup'; params: { updates: Array<{key: string, value: string}> } }}
*/
function updateExpansions(expansions) {
const updates = Object.entries(expansions).map(([key, value]) => ({ key, value: `${value}` }));
return {
Expand Down

0 comments on commit 0069097

Please sign in to comment.