- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for function (0.22 sec)
-
.cm/plugins/filters/isEnabledUser/index.js
* @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. * @example {{ pr.author | isEnabledUser }} */ function isEnabledUser(username) {
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/categorize/index.js
* @returns {[Object]} Returns a list of objects for each platform containing info about the changes to files in that platform * @example {{ owners | categorize(branch.diff.files_metadata) }} */ function categorize(fileOwners, fileMetadatas) { const result = new Map(); [...fileOwners.keys()].forEach(platform => { result.set(platform, { name: platform, files: [] });
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/nullToEmpty/index.js
* @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 = []; } console.log("nullToEmpty: " + output); return 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/summaryTable/index.js
console.log("summaryTable: " + result); return result; } function platformsAffected(statistics) { // Significance is defined as a platform having more than 10% of the total lines changed let totalLinesChanged = statistics.reduce((acc, summary) => acc + summary.additions + summary.deletions, 0); let platformHasSignificantChanges = function(summary) { let linesChanged = summary.additions + summary.deletions;
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/computeStatistics/index.js
* @example {{ fileOwners | categorize(branch.diff.files_metadata) | changeStatistics(branch.diff.files_metadata) }} */ function computeStatistics(groupedFiles, fileMetadatas) { let totalAdditions = 0; let totalDeletions = 0 let totalChangedFiles = 0; let summaries = [...groupedFiles.values()];
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 1.8K bytes - Viewed (0) -
.cm/plugins/filters/isEnabledAutomation/index.js
* @returns {boolean} Returns true if the outlined conditions are met, otherwise false. * @example {{ 'platform_labels' | isEnabledAutomation(pr) }} */ function isEnabledAutomation(automationName, pr) { let result; const automationActivations = enabled.get(automationName) || []; // Check if always enabled, or enabled by comment
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/byCodeowner/index.js
} function codeownersMapping(data) { return data .toString() .split('\n') .filter(x => x && !x.startsWith('#')) .map(x => x.split("#")[0]) .map(x => { const line = x.trim(); const [path, ...owners] = line.split(/\s+/); return {path, owners}; }); } function resolveCodeowners(mapping, file) {
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) -
.cm/plugins/filters/byPlatform/index.js
* @param {string[]} files - the gitStream's files context variable * @returns {Map} - Map from platform to list of files in this PR in it * @example {{ owners | byPlatform }} */ function byPlatform(files) { const result = new Map(); files.forEach(file => { const platform = getPlatform(file); if (!result.has(platform)) { result.set(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
* @param {String} fieldName - The name of the field for the group to return * @returns String - The specified value * @example {{ files | byPlatform | categorize(branch.diff.files_metadata) | readField('jvm', 'name') }} */ function readField(objects, objectName, fieldName) { let group = Object.values(objects).find(s => s.name === objectName); if (group) { const result = group[fieldName]; if (result === undefined) {
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/ignore/index.js
// A simple implementation of make-array function makeArray (subject) { return Array.isArray(subject) ? subject : [subject] } const EMPTY = '' const SPACE = ' ' const ESCAPE = '\\' const REGEX_TEST_BLANK_LINE = /^\s+$/ const REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/ const REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/ const REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/ const REGEX_SPLITALL_CRLF = /\r?\n/g
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)