gitlab-triage 1.12.0 → 1.13.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: 8c1f1647bd8e731bd00b60df96b8bf83e359c2506cbfebd18adedf04a9dcbfcc
4
- data.tar.gz: f303e3db93eb3c15d2609de4a80a3c65809f0a8294f37ca0f8809b3ea822fb87
3
+ metadata.gz: 68fbfe16d2db2547d8b262ff52cb7065860d13822a92b38d6d505234aafa0855
4
+ data.tar.gz: 99dc42b1125665a331b8dd6afe576e1c0b8b0abbd0cf8239d5be44184e900c52
5
5
  SHA512:
6
- metadata.gz: 348246b297761a1601805c719fbf8b1db6054d70de9c5944c2759c1e802afa23a6b920c334c339bfb9b51417ae701d0c6b6b066a70f7dd6ed463e38c1ad0a8ec
7
- data.tar.gz: 1fdcf07e0694c0834fbaa7cec358aaf3ec1c6366ba4d9270b1036fd1c3d466c5ba727c7a839df4da32e3ff420b32f6fc92a1fa819aad5915657eb7113b94c057
6
+ metadata.gz: 37e60f6230d1467d18246aa4dc52f439c08939f5a7e2278ed543090c08d5c08b39bffc2840543cbd0a702480d8fbeeb65dc7932fe90a98c2d26a88c8b19f3805
7
+ data.tar.gz: 8f82804d8431b08791f3e37974a0cc47aacec887af2969f3e612cba8ac8212e0ac6a25f4235424801b01f6eb0d5bc6db72535d0fed1f962658270164613034cd
data/README.md CHANGED
@@ -141,6 +141,7 @@ Available condition types:
141
141
  - [`assignee_member` condition](#assignee-member-condition)
142
142
  - [`source_branch` condition](#source-branch-condition)
143
143
  - [`target_branch` condition](#target-branch-condition)
144
+ - [`weight` condition](#weight-condition)
144
145
  - [`ruby` condition](#ruby-condition)
145
146
 
146
147
  ##### Date condition
@@ -467,6 +468,24 @@ conditions:
467
468
  target_branch: 'master'
468
469
  ```
469
470
 
471
+ ##### Weight condition
472
+
473
+ Accepts a string per the [API documentation](https://docs.gitlab.com/ee/api/issues.html#list-issues).
474
+ This condition is only applicable for issues (not merge requests).
475
+
476
+ | State | Type | Value |
477
+ | --------- | ---- | ------ |
478
+ | Any weight | string | `Any` |
479
+ | No weight | string | `None` |
480
+ | Specific weight | integer | integer |
481
+
482
+ Example:
483
+
484
+ ```yml
485
+ conditions:
486
+ weight: Any
487
+ ```
488
+
470
489
  ##### Ruby condition
471
490
 
472
491
  This condition allows users to write a Ruby expression to be evaluated for
@@ -253,6 +253,10 @@ module Gitlab
253
253
  condition_builders << APIQueryBuilders::DateQueryParamBuilder.new(conditions.delete(:date))
254
254
  end
255
255
 
256
+ if conditions[:weight] && resource_type.to_sym == :issues
257
+ condition_builders << APIQueryBuilders::SingleQueryParamBuilder.new('weight', conditions[:weight])
258
+ end
259
+
256
260
  condition_builders.each do |condition_builder|
257
261
  params[condition_builder.param_name] = condition_builder.param_content
258
262
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gitlab
4
4
  module Triage
5
- VERSION = '1.12.0'
5
+ VERSION = '1.13.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.12.0
4
+ version: 1.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-19 00:00:00.000000000 Z
11
+ date: 2020-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport