payping-gitlab-triage 0.1.1 → 0.1.2
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/lib/gitlab/triage/engine.rb +3 -1
- data/lib/gitlab/triage/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 67c4f7f984250a178c026433a2ba4b75190c66b506bdaca796d3c6cb95fedbb4
|
|
4
|
+
data.tar.gz: 494e31e589e7d28bfea63457d1088705eae606ca0dc47a5510943c84514f453e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 58709e2979ccd1ae7ddc9c50454587729311b86dd5aa878dcfc50635454aa8111b208f93efa28f3e582042aab524811a74262ac98e0386162163de390a495110
|
|
7
|
+
data.tar.gz: 81dc081708dac4fa7f2308533840f29ae4468ad4cbd6967f3127560fb1dc19a1c8fe436e1e81ce215d80cf8484c24418b2c93553667557f5c428801f3958ad82
|
data/lib/gitlab/triage/engine.rb
CHANGED
|
@@ -561,7 +561,9 @@ module Gitlab
|
|
|
561
561
|
def iteration_condition_builder(iteration_value)
|
|
562
562
|
# Issues API should use the `iteration_id` param for timebox values, and `iteration_title` for iteration title
|
|
563
563
|
args =
|
|
564
|
-
if
|
|
564
|
+
if iteration_value.is_a? Integer
|
|
565
|
+
['iteration_id', iteration_value]
|
|
566
|
+
elseif ITERATION_SELECTION_VALUES.include?(iteration_value.downcase)
|
|
565
567
|
['iteration_id', iteration_value.titleize] # The API only accepts titleized values.
|
|
566
568
|
else
|
|
567
569
|
['iteration_title', iteration_value]
|