Conditions: Labels: The full label expansion doesn't seem to work well
In the issue https://gitlab.com/gitlab-org/gitlab-triage/issues/124 we have defined that we can configurate a full label expansion by forcing string (https://gitlab.com/gitlab-org/gitlab-triage/merge_requests/88/diffs)
I have done it and it seems to works because rules are duplicated.
But in my case the action is only played for the last label.
Example
# .triage-policies.yml
resource_rules:
issues:
rules:
- name: Add frontend label
conditions:
state: opened
labels:
- |
{
candidate,
monitor,
admin-lpl,
admin-lcl,
webapps
}
forbidden_labels:
- frontend
actions:
labels:
- frontend
# debugged output
---------------------------
Processing rules for issues
---------------------------
---------------------------------------
Processing rule: **Add frontend label**
---------------------------------------
.[DEBUG] query_api: https://gitlab.com/api/v4/projects/MY-PROJECT/issues?per_page=100&labels=candidate&state=opened
* Found 72 resources...
* Filtering resources...
* Total after filtering: 72 resources
* Limiting resources...
* Total after limiting: 72 resources
.[DEBUG] query_api: https://gitlab.com/api/v4/projects/MY-PROJECT/issues?per_page=100&labels=monitor&state=opened
* Found 49 resources...
* Filtering resources...
* Total after filtering: 49 resources
* Limiting resources...
* Total after limiting: 49 resources
.[DEBUG] query_api: https://gitlab.com/api/v4/projects/MY-PROJECT/issues?per_page=100&labels=admin-lpl&state=opened
* Found 31 resources...
* Filtering resources...
* Total after filtering: 31 resources
* Limiting resources...
* Total after limiting: 31 resources
.[DEBUG] query_api: https://gitlab.com/api/v4/projects/MY-PROJECT/issues?per_page=100&labels=admin-lcl&state=opened
* Found 4 resources...
* Filtering resources...
* Total after filtering: 4 resources
* Limiting resources...
* Total after limiting: 4 resources
.[DEBUG] query_api: https://gitlab.com/api/v4/projects/MY-PROJECT/issues?per_page=100&labels=webapps&state=opened
* Found 22 resources...
* Filtering resources...
* Total after filtering: 22 resources
* Limiting resources...
* Total after limiting: 22 resources
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/680/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/680/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/677/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/677/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/657/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/657/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/646/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/646/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/617/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/617/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/615/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/615/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/812/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/812/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/828/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/828/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/850/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/850/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/762/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/762/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/822/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/822/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/808/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/808/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/763/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/763/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/806/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/806/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/802/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/802/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/751/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/751/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/814/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/814/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/817/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/817/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/816/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/816/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/819/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/819/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/815/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/xxx/issues/815/notes?
[DEBUG] post_url: https://gitlab.com/api/v4/projects/xxx/issues/782/notes?
[DEBUG] post_api: https://gitlab.com/api/v4/projects/XXX/issues/782/notes?
Did I miss something ?