gitlab-triage 0.11.0 → 0.12.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 +2 -6
- data/lib/gitlab/triage/command_builders/text_content_builder.rb +1 -5
- data/lib/gitlab/triage/engine.rb +1 -1
- 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: e43782bbf5e45d1c7699a1eb9ecb0168bc3d5c0744321e4e35e7266a8c557e54
|
4
|
+
data.tar.gz: 9845eea26534334f705fd2832e5c47c646f81bb3b8c1499e2b9f6006daad8284
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c49e920f42913e5c275f8cc166e6c4a17dc7d1462b613aaf7efc9d2e61bad58338d9d138598c5688eb56864b18882b4aad420d3b03330aa5a7c679690e4daaa
|
7
|
+
data.tar.gz: 753b412633000a762e44bdcf22790d29058ecf09ee1b93dda2cd110da3bc999a2d7a84b5fcea783aaee63e380452a840d29b1bfdb7dab722710f8577b3e08d24
|
data/README.md
CHANGED
@@ -130,17 +130,13 @@ conditions:
|
|
130
130
|
|
131
131
|
##### Milestone condition
|
132
132
|
|
133
|
-
Accepts
|
134
|
-
|
135
|
-
> Note: **All** specified milestones must be present on the resource for the condition to be satisfied
|
133
|
+
Accepts the name of a milestone to filter upon.
|
136
134
|
|
137
135
|
Example:
|
138
136
|
|
139
137
|
```yml
|
140
138
|
conditions:
|
141
|
-
milestone:
|
142
|
-
- v1
|
143
|
-
- v2
|
139
|
+
milestone: v1
|
144
140
|
```
|
145
141
|
|
146
142
|
##### State condition
|
@@ -65,11 +65,7 @@ module Gitlab
|
|
65
65
|
|
66
66
|
final_fields = fields.map { |field| formatted_text.sub(PLACEHOLDER_REGEX, field.to_s) }
|
67
67
|
|
68
|
-
|
69
|
-
comment.gsub("{{#{placeholder}}}", final_fields.join(', '))
|
70
|
-
else
|
71
|
-
comment
|
72
|
-
end
|
68
|
+
comment.gsub("{{#{placeholder}}}", final_fields.join(', '))
|
73
69
|
end
|
74
70
|
end
|
75
71
|
|
data/lib/gitlab/triage/engine.rb
CHANGED
@@ -155,7 +155,7 @@ module Gitlab
|
|
155
155
|
condition_builders = []
|
156
156
|
condition_builders << APIQueryBuilders::MultiQueryParamBuilder.new('labels', conditions[:labels], ',') if conditions[:labels]
|
157
157
|
condition_builders << APIQueryBuilders::SingleQueryParamBuilder.new('state', conditions[:state]) if conditions[:state]
|
158
|
-
condition_builders << APIQueryBuilders::
|
158
|
+
condition_builders << APIQueryBuilders::SingleQueryParamBuilder.new('milestone', Array(conditions[:milestone])[0]) if conditions[:milestone]
|
159
159
|
|
160
160
|
condition_builders.each do |condition_builder|
|
161
161
|
params[condition_builder.param_name] = condition_builder.param_content
|
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: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitLab
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|