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 +4 -4
- data/README.md +19 -0
- data/lib/gitlab/triage/engine.rb +4 -0
- 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: 68fbfe16d2db2547d8b262ff52cb7065860d13822a92b38d6d505234aafa0855
|
|
4
|
+
data.tar.gz: 99dc42b1125665a331b8dd6afe576e1c0b8b0abbd0cf8239d5be44184e900c52
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/gitlab/triage/engine.rb
CHANGED
|
@@ -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
|
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.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-
|
|
11
|
+
date: 2020-08-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|