README.md in gitlab-triage-0.3.0 vs README.md in gitlab-triage-0.4.0
- old
+ new
@@ -1,6 +1,6 @@
-[![pipeline status](https://gitlab.com/gitlab-org/triage/badges/master/pipeline.svg)](https://gitlab.com/gitlab-org/triage/commits/master)
+[![pipeline status](https://gitlab.com/gitlab-org/gitlab-triage/badges/master/pipeline.svg)](https://gitlab.com/gitlab-org/gitlab-triage/commits/master)
# GitLab Triage Project
This project contains the library and pipeline definition to enable automated triaging of issues in the [GitLab-CE Project](https://gitlab.com/gitlab-org/gitlab-ce).
@@ -43,11 +43,11 @@
condition: older_than
interval_type: days
interval: 5
state: opened
label:
- - No label
+ - No Label
actions:
labels:
- needs attention
mention:
- markglenfletcher
@@ -84,10 +84,11 @@
- [`milestone` condition](#milestone-condition)
- [`state` condition](#state-condition)
- [`upvotes` condition](#upvotes-condition)
- [`labels` condition](#labels-condition)
- [`forbidden_labels` condition](#forbidden-labels-condition)
+- [`author_member` condition](#author-member-condition)
##### Date condition
Accepts a hash of fields.
@@ -184,9 +185,33 @@
```yml
conditions:
forbidden_labels:
- awaiting feedback
+```
+
+##### Author Member condition
+
+This condition determines whether the author of a resource is a member of the specified group or project.
+
+This is useful for determining whether Issues or Merge Requests have been raised by a Community Contributor.
+
+Accepts a hash of fields.
+
+| Field | Type | Values | Required |
+| --------- | ---- | ---- | -------- |
+| `source` | string | `group`, `project` | yes |
+| `condition` | string | `member_of`, `not_member_of` | yes |
+| `source_id` | integer | integer | yes |
+
+Example:
+
+```yml
+conditions:
+ author:
+ source: group
+ condition: not_member_of
+ source_id: 9970
```
#### Actions field
Used to declare an action to be carried out on a resource if **all** conditions are satisfied.