apadmi_grout 2.2.1 → 2.2.3

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: 58507ab047f8ae45fff33f92ac13ae75d57680c0d29abdaaedf39ea0e27e82c2
4
- data.tar.gz: d598788e30b14c306d107c7522c2e1646f95f54e92cb8f4aa74806326a85b10d
3
+ metadata.gz: 454ad88ccf8626779e456e3960bf0cb518befae8383418865dceffd8116e4bad
4
+ data.tar.gz: 2e17f78ac813ccb6d7d6571b38c34e98f2584456626e4bd953ebf5346050b379
5
5
  SHA512:
6
- metadata.gz: acc0fa240dde5f43293978694005ff9509dd39fdfeb89ea2db207f0944ab54d8eab598da6f133d9595e12c870b4a1ee7d6307c3060f376544231bff2493572c5
7
- data.tar.gz: 230e4d0c686736605ac0a2548fc500c398d4e7c41b39d1aff55b93ed567cad887503cfa2684066a06a59f8f77e0f0bc05a5298d5647074235e1ef7ee06968ec7
6
+ metadata.gz: 5d1babf7b932f6c92637c9fe22e2ec9814630043356c3fa36092551b7a181440bd23d539329fe053de27260da2664c2b7ba0db00cc73ee3ffa585584c210a770
7
+ data.tar.gz: b2d9904a1de99ed5bbbe8e401447a98f58b4514616853296828d17f7c743ffafa8a129858bd3bf3fbd90ea5e8701856771f2a45492ada3d6afe34bc651013f13
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Core Changelog
2
2
 
3
+ ## [2.2.3] - 2023-01-26
4
+ * Filter tickets with id 0 from changelog since these are almost always just placeholders.
5
+
6
+ ## [2.2.2] - 2022-08-24
7
+ * Suppress ADO errors when requesting tickets that don't exist - match JIRA behaviour
8
+
3
9
  ## [2.2.1] - 2022-08-21
4
10
  * Reduce ruby version to match what bitrise has installed
5
11
 
@@ -28,7 +28,9 @@ module Apadmi
28
28
  # Changelog often has the pull request number in it, this can mess up the parsing so strip it out if we can
29
29
  changelog = changelog.gsub(/\(pull request.*\)/, "")
30
30
 
31
- changelog.scan(/(#{@ticket_prefix}\d+)/).flatten.uniq
31
+ changelog.scan(/(#{@ticket_prefix}\d+)/).flatten.uniq.filter do |id|
32
+ Integer(id.delete_prefix(@ticket_prefix), exception: false) != 0 # Filter out tickets with ID 0 since these are always placeholders
33
+ end
32
34
  end
33
35
  end
34
36
  end
@@ -24,13 +24,13 @@ module Apadmi
24
24
 
25
25
  keys = keys.map { |k| sanitise_key(k) } # Allows supporting raw keys, and keys prefixed with a hash which is common ADO practice
26
26
 
27
- res = @network_service.do_get("/wit/workitems?ids=#{keys.join(",")}&api-version=7.1-preview.2")
27
+ res = @network_service.do_get("/wit/workitems?ids=#{keys.join(",")}&errorPolicy=omit&api-version=7.1-preview.2")
28
28
  parsed = JSON.parse(res.body)
29
29
  items = parsed["value"]
30
30
 
31
- return if items.nil? || items.empty?
31
+ return [] if items.nil? || items.compact.empty?
32
32
 
33
- items.map { |i| Apadmi::Grout::Issue.from_ado_hash(i) }
33
+ items.compact.map { |i| Apadmi::Grout::Issue.from_ado_hash(i) }
34
34
  end
35
35
 
36
36
  # @param component [String] Included to be consistent with JIRA, this will boil down to a tag in ADO
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Apadmi
4
4
  module Grout
5
- VERSION = "2.2.1"
5
+ VERSION = "2.2.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apadmi_grout
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Apadmi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-21 00:00:00.000000000 Z
11
+ date: 2023-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday