Skip to content

Commit 0069097

Browse files
committed
docs: add description of updateExpansions helper
1 parent d05b262 commit 0069097

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.evergreen/generate_evergreen_tasks.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ const WINDOWS_SKIP_TAGS = new Set([
5151
const TASKS = [];
5252
const SINGLETON_TASKS = [];
5353

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

0 commit comments

Comments
 (0)