ci_toolkit 1.5.0 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ci_toolkit/build_status.rb +5 -1
- data/lib/ci_toolkit/gitlab_pr.rb +2 -4
- data/lib/ci_toolkit/pr_messenger.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87feaa62793778d43ee9e9ad8cb0c80c47060e3430637deeda2f16ca8d582504
|
4
|
+
data.tar.gz: f7f316e25915399f317d852fad2f9bc31ade2aab39c6ca0e0dc020641d960d62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d84278903059b2a2ddb229d41c99c39d70ae608a33f91c0e97122f40441c33d324ef9d073776ed552e6f70871498fb50967eb5342472ed1609e714e1445963f
|
7
|
+
data.tar.gz: 061eb27df8659e1b1b64a6f7b5089fa286448fbb311ce73e50bd36b497f4f8da2656c90ecfa68b6ac9a5de7810c9980a2f5a6a3b6021892b7c0042d42888d6ee
|
data/Gemfile.lock
CHANGED
@@ -4,7 +4,11 @@ module CiToolkit
|
|
4
4
|
# allows to have a combined build status for all builds that are triggered for a pull request
|
5
5
|
# it uses the description of the status check on Github to parse the number of builds remaining and total
|
6
6
|
class BuildStatus
|
7
|
-
def initialize(
|
7
|
+
def initialize(
|
8
|
+
context = "Builds",
|
9
|
+
github = CiToolkit::DvcsPrFactory.create(CiToolkit::BitriseEnv.new),
|
10
|
+
env = CiToolkit::BitriseEnv.new
|
11
|
+
)
|
8
12
|
@context = context
|
9
13
|
@github = github
|
10
14
|
@env = env
|
data/lib/ci_toolkit/gitlab_pr.rb
CHANGED
@@ -66,7 +66,7 @@ module CiToolkit
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def files
|
69
|
-
client.merge_request_changes(@repo_slug, @pr_number)
|
69
|
+
client.merge_request_changes(@repo_slug, @pr_number).changes
|
70
70
|
end
|
71
71
|
|
72
72
|
def create_status(state, context, target_url, description)
|
@@ -105,7 +105,7 @@ module CiToolkit
|
|
105
105
|
end
|
106
106
|
|
107
107
|
def big?
|
108
|
-
lines_of_code_changed > 500
|
108
|
+
lines_of_code_changed.to_i > 500
|
109
109
|
end
|
110
110
|
|
111
111
|
def realm_module_modified?
|
@@ -117,8 +117,6 @@ module CiToolkit
|
|
117
117
|
|
118
118
|
def client
|
119
119
|
@_client = GitLab::Client.new if @_client.nil?
|
120
|
-
# @_client.access_token = @bot.create_token if @_client.access_token.nil?
|
121
|
-
|
122
120
|
@_client
|
123
121
|
end
|
124
122
|
end
|
@@ -4,7 +4,7 @@ module CiToolkit
|
|
4
4
|
# Sends messages to a Github PR for predefined build events
|
5
5
|
class PrMessenger
|
6
6
|
def initialize(
|
7
|
-
github_pr = CiToolkit::
|
7
|
+
github_pr = CiToolkit::DvcsPrFactory.create(CiToolkit::BitriseEnv.new),
|
8
8
|
messenger_text = CiToolkit::PrMessengerText.new
|
9
9
|
)
|
10
10
|
@github_pr = github_pr
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ci_toolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gero Keller
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|