gitlab-triage 1.26.0 → 1.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -0
- data/lib/gitlab/triage/engine.rb +7 -2
- data/lib/gitlab/triage/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6668ca8a79611f5e39d317807cb604d7fb32320120283c9996a9784515523bf5
|
4
|
+
data.tar.gz: d6211b78036d039e89a75da4f93bbfa07c44b73ffd16f331ae1bfb5cc901cc9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf0a6406e2a2b6f6cc6b7436831b3b95be04bbf1174c70d3fc5d4a0e24d4e8ccddcd1837864bc8e336fb1c5a0dc947c8a37716d74b31f35e025c4a21bcdb2fda
|
7
|
+
data.tar.gz: 0aa64137299f30fe4f83db4b50475c2b9a15e9730eebbcf5b98d5ce17150a70379f5ae629a87b5d399ce4c74a1712063e222c224ef2e6da29d3016ca48faa35f
|
data/README.md
CHANGED
@@ -182,6 +182,7 @@ Available condition types:
|
|
182
182
|
- [`discussions` condition](#discussions-condition)
|
183
183
|
- [`protected` condition](#protected-condition)
|
184
184
|
- [`ruby` condition](#ruby-condition)
|
185
|
+
- [`reviewer_id` condition](#reviewer-id-condition)
|
185
186
|
|
186
187
|
##### Date condition
|
187
188
|
|
@@ -670,6 +671,19 @@ limits:
|
|
670
671
|
most_recent: 50
|
671
672
|
```
|
672
673
|
|
674
|
+
##### Reviewer id condition
|
675
|
+
|
676
|
+
**This condition is only applicable for merge requests.**
|
677
|
+
|
678
|
+
Accepts the id of a user to filter on. Also accepts `none` or `any`.
|
679
|
+
|
680
|
+
Example:
|
681
|
+
|
682
|
+
```yml
|
683
|
+
conditions:
|
684
|
+
reviewer_id: any
|
685
|
+
```
|
686
|
+
|
673
687
|
#### Actions field
|
674
688
|
|
675
689
|
Used to declare an action to be carried out on a resource if **all** conditions are satisfied.
|
data/lib/gitlab/triage/engine.rb
CHANGED
@@ -469,8 +469,13 @@ module Gitlab
|
|
469
469
|
|
470
470
|
def merge_requests_resource_query(conditions)
|
471
471
|
[].tap do |condition_builders|
|
472
|
-
|
473
|
-
|
472
|
+
[
|
473
|
+
:source_branch,
|
474
|
+
:target_branch,
|
475
|
+
:reviewer_id
|
476
|
+
].each do |key|
|
477
|
+
condition_builders << APIQueryBuilders::SingleQueryParamBuilder.new(key.to_s, conditions[key]) if conditions[key]
|
478
|
+
end
|
474
479
|
condition_builders << draft_condition_builder(conditions[:draft]) if conditions.key?(:draft)
|
475
480
|
end
|
476
481
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-triage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.27.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitLab
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|