README.md in gitlab-triage-1.27.0 vs README.md in gitlab-triage-1.28.0

- old
+ new

@@ -176,26 +176,27 @@ - [`author_member` condition](#author-member-condition) - [`assignee_member` condition](#assignee-member-condition) - [`draft` condition](#draft-condition) - [`source_branch` condition](#source-branch-condition) - [`target_branch` condition](#target-branch-condition) +- [`health_status` condition](#health-status-condition) - [`weight` condition](#weight-condition) - [`discussions` condition](#discussions-condition) - [`protected` condition](#protected-condition) - [`ruby` condition](#ruby-condition) - [`reviewer_id` condition](#reviewer-id-condition) ##### Date condition Accepts a hash of fields. -| Field | Type | Values | Required | -| --------- | ---- |--------------------------------------------------------------------------| -------- | +| Field | Type | Values | Required | +| --------- | ---- |----------------------------------------------------------------------------| -------- | | `attribute` | string | `created_at`, `updated_at`, `merged_at`, `authored_date`, `committed_date` | yes | -| `condition` | string | `older_than`, `newer_than` | yes | -| `interval_type` | string | `days`, `weeks`, `months`, `years` | yes | -| `interval` | integer | integer | yes | +| `condition` | string | `older_than`, `newer_than` | yes | +| `interval_type` | string | `minutes`, `hours`, `days`, `weeks`, `months`, `years` | yes | +| `interval` | integer | integer | yes | > **Note:** > - `merged_at` only works on merge requests. > - `closed_at` is not supported in the GitLab API, but can be used in a [`ruby` condition](#ruby-condition). > - `committed_date` and `authored_date` only works for branches. @@ -208,10 +209,25 @@ condition: older_than interval_type: months interval: 12 ``` +> **Note:** If the GitLab server is giving 500 error with this option, it +> can mean that it's taking too much time to query this, and it's timing out. +> A workaround for this is that we can filter in Ruby. If you need this +> workaround, specify this with `filter_in_ruby: true` +> +> ```yaml +> conditions: +> date: +> attribute: updated_at +> condition: older_than +> interval_type: months +> interval: 12 +> filter_in_ruby: true +> ``` + ##### Milestone condition Accepts the name of a milestone to filter upon. Also accepts the following timebox values: - `none` @@ -550,9 +566,29 @@ ```yml conditions: target_branch: 'master' ``` + +##### Health Status condition + +**This condition is only applicable for issues.** + +Accepts a string per the [API documentation](https://docs.gitlab.com/ee/api/issues.html#list-issues). + +| State | Type | Value | +| --------- | ---- | ------ | +| Any health status | string | `Any` | +| No health status | string | `None` | +| Specific health status | string | One of `on_track`, `needs_attention` or `at_risk` | + +Example: + +```yml +conditions: + health_status: Any + +> **Note:** This query is not supported using GraphQL yet. ##### Weight condition **This condition is only applicable for issues.**