- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for isEnabledAutomation (0.22 sec)
-
.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/misc_labels.cm
docs_only: if: - {{ ('misc_labels' | isEnabledAutomation(pr)) }} - {{ is.docs }} run: - action: add-label@v1 args: label: 'a:documentation' # Add the a:chore label and auto-approve formatting-only changes formatting_only: if: - {{ ('misc_labels' | isEnabledAutomation(pr)) }} - {{ is.formatting }} run: - action: add-label@v1
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 3K bytes - Viewed (0) -
.cm/lacks_tests.cm
on: - pr_created - commit - comment_added automations: # If a PR contains non-trivial source changes and no tests, add a comment to the PR lacks_tests: if: - {{ ('lacks_tests' | isEnabledAutomation(pr)) }} - {{ includes_src_changes }} - {{ not (includes_test_changes) }} - {{ not (is_docs_only_change) }} - {{ not (is_formatting_only_change) }} run: - action: add-label@v1
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 2.4K bytes - Viewed (0) -
.cm/summary_table_platforms.cm
# its own file. on: - pr_created - commit - comment_added automations: summary_table_platforms: if: - {{ ('summary_table_platforms' | isEnabledAutomation(pr)) }} run: - action: add-comment@v1 args: comment: | {{ by_platform_comment }} by_platform_comment: |
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 1.4K bytes - Viewed (0) -
.cm/code_experts.cm
- pr_created - commit - comment_added automations: # Also post a comment that lists the best experts for the files that were modified. comment_experts: if: - {{ ('code_experts' | isEnabledAutomation(pr)) }} run: - action: explain-code-experts@v1 args:
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 1.3K bytes - Viewed (0) -
.cm/includes_todos.cm
on: - pr_created - commit - comment_added automations: # If someone adds a TODO, remind them about it by requesting removal includes_todos: if: - {{ ('includes_todos' | isEnabledAutomation(pr)) }} - {{ source.diff.files | matchDiffLines(regex=r/(TODO)|(todo)/) | some }} run: - action: add-label@v1 args: label: "⚠️ Includes TODOs" color: {{ colors.yellow }}
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 1.9K bytes - Viewed (0) -
.cm/add_usual_expert.cm
automations: # If someone is a primary author of the files in a change, but NOT the pr author, automatically add them as a reviewer. add_usual_expert: if: - {{ ('add_usual_expert' | isEnabledAutomation(pr)) }} - {{ repo | codeExperts(gt=50) | match(branch.author) | nope }} run: - action: add-reviewers@v1 args:
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 1.4K bytes - Viewed (0) -
.cm/complex_changes.cm
# its own file. on: - pr_created - commit - comment_added automations: # If a PR is very complex, require 2 approvals complex_changes: if: - {{ ('complex_changes' | isEnabledAutomation(pr)) }} - {{ branch | estimatedReviewTime >= 40 }} - {{ files | length >= 35 }} - {{ includes_src_changes }} run: - action: set-required-approvals@v1 args:
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 1.7K bytes - Viewed (0) -
.cm/javadoc_on_new_files.cm
on: - pr_created - commit - comment_added automations: javadoc_on_new_files: # Triggered for new Java files that lack Javadoc content. if: - {{ ('javadoc_on_new_files' | isEnabledAutomation(pr)) }} - {{ is.java and is.new }} - {{ source.diff.files | matchDiffLines(regex=r/\/*\*([\s\S]*?)\//) | nope }} run: - action: add-label@v1 args: label: "⚠️ Missing Javadoc"
Plain Text - 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/estimated_time_to_review.cm
- comment_added automations: # Add a label that indicates how many minutes it will take to review the PR and categorizes it estimated_time_to_review: if: - {{ ('estimated_time_to_review' | isEnabledAutomation(pr)) }} run: - action: add-label@v1 # etr is defined in the last section of this example args: label: "{{ calc.etr }} min review"
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 2K bytes - Viewed (0)