Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for if (0.14 sec)

  1. .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)
  2. .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 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  3. .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 01 11:36:15 GMT 2024
    - Last Modified: Mon Apr 22 16:43:16 GMT 2024
    - 526 bytes
    - Viewed (0)
  4. src/main/webapp/js/index.js

      });
    
      $(document).on("click touchend", function(e) {
        if (!$(e.target).closest("#searchOptions, #searchOptionsButton").length) {
          $("#searchOptions").removeClass("active");
        }
      });
    
      $("[data-toggle='control-options']").click(function(e) {
        e.preventDefault();
        var target = $(this).attr("data-target") || $(this).attr("href");
        if (target) {
          $(target).toggleClass("active");
        }
      });
    
    JavaScript
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Mar 30 05:45:24 GMT 2023
    - 2K bytes
    - Viewed (0)
  5. .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 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  6. .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 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  7. .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 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  8. .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 01 11:36:15 GMT 2024
    - Last Modified: Mon Apr 22 16:47:29 GMT 2024
    - 1K bytes
    - Viewed (0)
  9. .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 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 1K bytes
    - Viewed (0)
  10. .cm/plugins/filters/byCodeowner/index.js

    function resolveCodeowners(mapping, file) {
        let match = mapping
            .slice()
            .reverse()
            .find(x =>
                ignore()
                    .add(x.path)
                    .ignores(file)
            );
        if (!match) {
            console.log("No codeowner found for: " + file);
            return ['No owner'];
        }
        return match.owners;
    }
    
    module.exports = {
        async: true,
    JavaScript
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Apr 22 19:12:32 GMT 2024
    - 2.8K bytes
    - Viewed (0)
Back to top