gitlab-triage 1.26.0 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dfb91844acb53e2543200eae19db3c5abaf9cd79106add7fa5ca7ca9585215dd
4
- data.tar.gz: eba68ca3b8a0539f2428e63d71f86fe28ac1e292e89141fa3312192f9a21a2fd
3
+ metadata.gz: 6668ca8a79611f5e39d317807cb604d7fb32320120283c9996a9784515523bf5
4
+ data.tar.gz: d6211b78036d039e89a75da4f93bbfa07c44b73ffd16f331ae1bfb5cc901cc9d
5
5
  SHA512:
6
- metadata.gz: fa86c82d57b8e4e9986039098b1c7f8f5b031dae68080bb38a84808ae6df26af48ebf0790d47558e8c9ecf6fad8ba2d7d8208ccb54a6b33cb753e0fac02139c5
7
- data.tar.gz: cacc6bc349fa41819c5b163cd67165983021bfee35bc9f607f5a64cb283d1372db51740e4c851238e68ff15776ec6289dc280ee2ca1d11f5714c0d36f7e68013
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.
@@ -469,8 +469,13 @@ module Gitlab
469
469
 
470
470
  def merge_requests_resource_query(conditions)
471
471
  [].tap do |condition_builders|
472
- condition_builders << APIQueryBuilders::SingleQueryParamBuilder.new('source_branch', conditions[:source_branch]) if conditions[:source_branch]
473
- condition_builders << APIQueryBuilders::SingleQueryParamBuilder.new('target_branch', conditions[:target_branch]) if conditions[:target_branch]
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gitlab
4
4
  module Triage
5
- VERSION = '1.26.0'
5
+ VERSION = '1.27.0'
6
6
  end
7
7
  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.26.0
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-24 00:00:00.000000000 Z
11
+ date: 2022-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport