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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 76692ec37afef600bb2a8965cad393694e7428b1351535e5fe14b0e650ecb76a
4
- data.tar.gz: dbbf66dc7de56db0f671d8c2c7648a41ba8d143fce50261a29a6250f4389229e
3
+ metadata.gz: 67c4f7f984250a178c026433a2ba4b75190c66b506bdaca796d3c6cb95fedbb4
4
+ data.tar.gz: 494e31e589e7d28bfea63457d1088705eae606ca0dc47a5510943c84514f453e
5
5
  SHA512:
6
- metadata.gz: a65a4a1362a30ff908807c3e1d17b1475e3c6694fafa122bab5d1e28320cde717879d3899a13ff886c68945e0dd7ea00b102e36de84b9ebb9fbea8b38e93e494
7
- data.tar.gz: ce275d436cc96705305055be3f530661cec620217f10fe2fb85dde5cac5a7514688028ccdd93429fb474889d53444ee68b6ac4686cbaa2ffb9a28cf0b6039ef4
6
+ metadata.gz: 58709e2979ccd1ae7ddc9c50454587729311b86dd5aa878dcfc50635454aa8111b208f93efa28f3e582042aab524811a74262ac98e0386162163de390a495110
7
+ data.tar.gz: 81dc081708dac4fa7f2308533840f29ae4468ad4cbd6967f3127560fb1dc19a1c8fe436e1e81ce215d80cf8484c24418b2c93553667557f5c428801f3958ad82
@@ -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 ITERATION_SELECTION_VALUES.include?(iteration_value.downcase)
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]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gitlab
4
4
  module Triage
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: payping-gitlab-triage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab