- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for if (0.11 sec)
-
.cm/plugins/filters/isEnabledUser/index.js
/** * @module isEnabledUser * @description Returns true if the username that is passed to this function is a member of the Gradle BT Team who has opted into gitStream automations. * @param {string} Input - The GitHub username to check. * @returns {boolean} Returns true if the user is specified in any of the lists of Gradle BT team members above, otherwise false.
JavaScript - Registered: Wed Apr 17 11:36:08 GMT 2024 - Last Modified: Mon Feb 05 22:00:34 GMT 2024 - 923 bytes - Viewed (0) -
.cm/plugins/filters/nullToEmpty/index.js
/** * @module nullToEmpty * @description Returns the specified value if non-null, otherwise an empty array. * @param {Object} input - The object to investigate * @returns Object - The specified value if non-null, otherwise an empty array * @example {{ readField('jvm', 'files') | nullToEmpty }} */ function nullToEmpty(input) { let output; if (input) { output = input; } else { output = []; }
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Mon Apr 22 16:43:16 GMT 2024 - 526 bytes - Viewed (0) -
.cm/plugins/filters/categorize/index.js
files: [] }); }); Object.values(fileMetadatas).forEach(fileMetadata => { [...fileOwners.keys()].forEach(platform => { const files = fileOwners.get(platform); if (files.includes(fileMetadata.file)) { result.get(platform).files.push(fileMetadata.file); } }); }); console.log("categorize: "); console.log([...result.values()]);
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 1.2K bytes - Viewed (0) -
.cm/plugins/filters/isEnabledAutomation/index.js
const checks = extractCheckNames(comment.content); if (checks.includes(automationName)) { return true; } }); } // If not found to be enabled by the above checks, check if enabled by user if (!result) { if (pr.author_is_org_member) { result = automationActivations.includes(pr.author); } else {
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 3.1K bytes - Viewed (0) -
.cm/plugins/filters/summaryTable/index.js
let result = ""; if (statistics.length > 1) { result += statistics.length + " platforms were affected"; } else { result += "1 platform was affected"; } if (platformsWithSignificantChanges.length > 1) { result += " (:warning: if possible, only one platform should have significant changes in a PR)"; } else {
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 3.2K bytes - Viewed (0) -
.cm/plugins/filters/byCodeowner/ignore/index.js
const checkPath = (path, originalPath, doThrow) => { if (!isString(path)) { return doThrow( `path must be a string, but got \`${originalPath}\``, TypeError ) } // We don't know if we should ignore EMPTY, so throw if (!path) { return doThrow(`path must not be empty`, TypeError) } // Check if it is a relative path
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 17.5K bytes - Viewed (0) -
.cm/plugins/filters/byPlatform/index.js
* @example {{ owners | byPlatform }} */ function byPlatform(files) { const result = new Map(); files.forEach(file => { const platform = getPlatform(file); if (!result.has(platform)) { result.set(platform, []); } result.get(platform).push(file); }); console.log("byPlatform: "); [...result.keys()].forEach(platform => {
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Mon Apr 22 16:47:29 GMT 2024 - 1K bytes - Viewed (0) -
.cm/plugins/filters/readField/index.js
*/ function readField(objects, objectName, fieldName) { let group = Object.values(objects).find(s => s.name === objectName); if (group) { const result = group[fieldName]; if (result === undefined) { throw "readField: field '" + fieldName + "' not found on object named '" + objectName + "' with fields '" + Object.keys(group) + "'"; } else {
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 1K bytes - Viewed (0) -
.cm/plugins/filters/byCodeowner/index.js
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Mon Apr 22 19:12:32 GMT 2024 - 2.8K bytes - Viewed (0)