deepsource_update_metric_setting
Configure reporting and enforcement of quality metrics in DeepSource projects. Enable or disable metric display in the UI/API and set thresholds to fail checks when unmet.
Instructions
Update the settings for a quality metric in a DeepSource project.
This allows configuring how metrics are used in the project:
- Enable/disable reporting the metric in the UI and API
- Enable/disable enforcing thresholds (failing checks when thresholds aren't met)
Example:
- Enable reporting and enforce thresholds: isReported=true, isThresholdEnforced=true
- Only report but don't enforce: isReported=true, isThresholdEnforced=false
- Disable completely: isReported=false, isThresholdEnforced=false
Input Schema
Name | Required | Description | Default |
---|---|---|---|
isReported | Yes | Whether the metric should be reported | |
isThresholdEnforced | Yes | Whether the threshold should be enforced (can fail checks) | |
metricShortcode | Yes | The shortcode of the metric to update | |
projectKey | Yes | The unique identifier for the DeepSource project | |
repositoryId | Yes | The GraphQL repository ID (get this from deepsource_quality_metrics response) |