README.md in gitlab-triage-0.4.0 vs README.md in gitlab-triage-0.5.0

- old
+ new

@@ -84,11 +84,13 @@ - [`milestone` condition](#milestone-condition) - [`state` condition](#state-condition) - [`upvotes` condition](#upvotes-condition) - [`labels` condition](#labels-condition) - [`forbidden_labels` condition](#forbidden-labels-condition) +- [`no_additional_labels` condition](#no-additional-labels-condition) - [`author_member` condition](#author-member-condition) +- [`assignee_member` condition](#assignee-member-condition) ##### Date condition Accepts a hash of fields. @@ -187,10 +189,24 @@ conditions: forbidden_labels: - awaiting feedback ``` +##### No additional labels condition + +Accepts a boolean. If `true` the resource cannot have more labels than those specified by the `labels` condition. + + +Example: + +```yml +conditions: + labels: + - feature proposal + no_additional_labels: true +``` + ##### 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. @@ -199,16 +215,38 @@ | Field | Type | Values | Required | | --------- | ---- | ---- | -------- | | `source` | string | `group`, `project` | yes | | `condition` | string | `member_of`, `not_member_of` | yes | -| `source_id` | integer | integer | yes | +| `source_id` | integer or string | gitlab-org/gitlab-ce | yes | Example: ```yml conditions: - author: + author_member: + source: group + condition: not_member_of + source_id: 9970 +``` + +##### Assignee Member condition + +This condition determines whether the assignee of a resource is a member of the specified group or project. + +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 or string | gitlab-org/gitlab-ce | yes | + +Example: + +```yml +conditions: + assignee_member: source: group condition: not_member_of source_id: 9970 ```