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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84d31b76f637fefa2bc459d2883c59ab6f67bc2675e93a5d5d96790a2f94dbc0
4
- data.tar.gz: 2f930b5c98c5fb107a0a379b0e8a5319c5cf40e866bf4950abe215737858f552
3
+ metadata.gz: e43782bbf5e45d1c7699a1eb9ecb0168bc3d5c0744321e4e35e7266a8c557e54
4
+ data.tar.gz: 9845eea26534334f705fd2832e5c47c646f81bb3b8c1499e2b9f6006daad8284
5
5
  SHA512:
6
- metadata.gz: 768c1958c5486a09ab6cb9a2984686f9a4f7b149b7f7cbf851bb5a5c2acee7142b50fd83c98d42ce22bd132b4bf0fc8a22d92b2a59518cf21b65ac477448dca3
7
- data.tar.gz: b2ab624cb427cc0626fb39923ef2222077bab315882c00da245a2a728a082ce65784ca60a905f0b0114e6757bd5c0f7fe0ef2c6f007b5b5df9db82503e14e7fb
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 an array of strings. Each element is the name of a milestone to filter upon.
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
- if final_fields.any?
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
 
@@ -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::MultiQueryParamBuilder.new('milestone', conditions[:milestone], ',') if conditions[:milestone]
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
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module Triage
3
- VERSION = '0.11.0'.freeze
3
+ VERSION = '0.12.0'.freeze
4
4
  end
5
5
  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: 0.11.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-09-21 00:00:00.000000000 Z
11
+ date: 2018-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport