ci_toolkit 1.5.3 → 1.5.4
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/Gemfile.lock +1 -1
- data/lib/ci_toolkit/build_status.rb +2 -3
- data/lib/ci_toolkit/dvcs_pr.rb +4 -0
- data/lib/ci_toolkit/github_pr.rb +7 -0
- data/lib/ci_toolkit/gitlab_pr.rb +8 -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: 5cedc7fa6c13bd1256e5724b8c36852f39c1893a99f55ebfef23fe1d7e99ab4a
|
4
|
+
data.tar.gz: 0e50375d5c21fcd106dfe9013de91a55f93ce5b805203d9d4867dc16270ad576
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74cdb925c2a57bcafbc4f5e663b21dd461203117e1e6c1bb71ea4489ad6b92e51cad298de9af2f820bf7bb8b61b14ba3a8d1cd1501cfba3a6c5b85fa88e0702a
|
7
|
+
data.tar.gz: 8b739f154a353585d1fdfba66f9d2d277217ab5e65d33923fb72af1632870bfe1bb4baaa49ec98117d43c56cfd3ab9c563ae0b17623e58107342d1a722ab643c
|
data/Gemfile.lock
CHANGED
@@ -47,10 +47,9 @@ module CiToolkit
|
|
47
47
|
private
|
48
48
|
|
49
49
|
def load_counter
|
50
|
-
|
51
|
-
return if
|
50
|
+
description = @github.get_status_description(@context)
|
51
|
+
return if description.nil?
|
52
52
|
|
53
|
-
description = status[:description]
|
54
53
|
build_counter = description[%r{(\d/\d)}] || "0/0"
|
55
54
|
{ num_finished: build_counter.split("/")[0].to_i, num_total: build_counter.split("/")[1].to_i }
|
56
55
|
end
|
data/lib/ci_toolkit/dvcs_pr.rb
CHANGED
data/lib/ci_toolkit/github_pr.rb
CHANGED
data/lib/ci_toolkit/gitlab_pr.rb
CHANGED
@@ -74,7 +74,7 @@ module CiToolkit
|
|
74
74
|
@repo_slug,
|
75
75
|
@commit_sha,
|
76
76
|
state,
|
77
|
-
{
|
77
|
+
{ name: context, target_url: target_url, description: description }
|
78
78
|
)
|
79
79
|
end
|
80
80
|
|
@@ -113,6 +113,13 @@ module CiToolkit
|
|
113
113
|
modified_files.length.positive?
|
114
114
|
end
|
115
115
|
|
116
|
+
def get_status_description(context)
|
117
|
+
status = get_status(context)
|
118
|
+
return if status.nil?
|
119
|
+
|
120
|
+
status.description
|
121
|
+
end
|
122
|
+
|
116
123
|
private
|
117
124
|
|
118
125
|
def client
|