jirametrics 2.30 → 2.30.1pre1
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/jirametrics/issue.rb +4 -1
- data/lib/jirametrics/mcp_server.rb +4 -0
- 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: c1b70c2648c844b678a4b20ae4f9ed570e2a471ff306b4b682d1d0566ba9c334
|
|
4
|
+
data.tar.gz: ce6972d092d1f5b1bd7425f9d19a8dbbb1d2a7f584e0fe48b9f140faaca96e57
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 98e35757d64618ff0ee87854a88b98196ccf87cb47761c4a065ead4aae84cb6653cbb37c6746f06a61418fee4c75f31089172028b485b276939f3c07d99b045d
|
|
7
|
+
data.tar.gz: 1c509febc055eec7ca7d8d9a89a9136e6b6ded8ff8b0585c9b1432b0e2aeb8a8d7301808070eb52b8919e6340928b9aecf137e98a2acd79e6c271fd36a1bc83a
|
data/lib/jirametrics/issue.rb
CHANGED
|
@@ -969,7 +969,10 @@ class Issue
|
|
|
969
969
|
else
|
|
970
970
|
# Otherwise, we look at what the first one had changed away from.
|
|
971
971
|
first_status = first_change.old_value
|
|
972
|
-
|
|
972
|
+
# old_value_id should never be nil — a status change must have a 'from' id — but Jira has
|
|
973
|
+
# been seen in production omitting the 'from' field entirely. Fall back to 0 so the
|
|
974
|
+
# downstream fabricate/warn path handles it rather than crashing.
|
|
975
|
+
first_status_id = first_change.old_value_id || 0
|
|
973
976
|
end
|
|
974
977
|
|
|
975
978
|
creator = raw['fields']['creator']
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
require 'mcp'
|
|
4
4
|
require 'mcp/server/transports/stdio_transport'
|
|
5
|
+
require 'json-schema'
|
|
6
|
+
# Suppress the MultiJSON deprecation warning. json-schema enables MultiJSON by default if the
|
|
7
|
+
# gem is present anywhere in the environment, but we don't use it.
|
|
8
|
+
JSON::Validator.use_multi_json = false
|
|
5
9
|
|
|
6
10
|
class McpServer
|
|
7
11
|
def initialize projects:, aggregates: {}, timezone_offset: '+00:00'
|