Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for byPlatform (0.52 sec)

  1. .cm/plugins/filters/byPlatform/index.js

    /**
     * @module byPlatform
     * @description Groups the PR's files by platform based on the file's path.
     * @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)) {
    JavaScript
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Apr 22 16:47:29 GMT 2024
    - 1K bytes
    - Viewed (0)
  2. .cm/summary_table_platforms.cm

        run:
          - action: add-comment@v1
            args:
              comment: |
                {{ by_platform_comment }}
    
    by_platform_comment: |
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  3. .cm/plugins/filters/readField/index.js

     * @param {String} objectName - The name of the particular object to find
     * @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) {
    JavaScript
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 1K bytes
    - Viewed (0)
  4. .cm/platform_labels.cm

    automations:
    
      # Label changes by affected platforms (in blue)
      {% for platform in platforms %}
      platform_label_{{ platform.name }}:
        if:
          - {{ ('platform_labels' | isEnabledAutomation(pr)) }}
          - {{ files | byPlatform | categorize(branch.diff.files_metadata) | readField(platform.name, 'files') | nullToEmpty | some }}
        run:
          - action: add-label@v1
            args:
              label: 'platform:{{ platform.name }}'
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Apr 22 15:32:31 GMT 2024
    - 2.5K bytes
    - Viewed (0)
Back to top