ci_toolkit 1.4.9 → 1.4.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/ci_toolkit/bitrise_client.rb +5 -1
- data/lib/ci_toolkit/build.rb +2 -2
- data/lib/ci_toolkit/git.rb +1 -1
- data/lib/ci_toolkit/pr_messenger_text.rb +3 -3
- 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: 8ca9241717a55023bbc883936c7ea991130d731343cda78c48e392c37d00384d
|
4
|
+
data.tar.gz: 72a99fe032af182bdeec1b7c6b8ba335bb2c90b55f5236598f1ad9ccd833fd69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b560f3ed3c5bc90e4f85e12fc0bb795c961fd3adba2090821756ca9cbe6da3e9f936cd040fdad2809ab01b31db5d65b775083cd39c0a83bf01dfb974b8bbbfe8
|
7
|
+
data.tar.gz: 6ed5a5cb7fbc4c449469dadcfd937c4092582a9e2251771416299a78683f6dd84a584cb2e442dddb168d3b51b059ddec4bf39c1606673f07c6acfbde7ce7a86b
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ci_toolkit (1.4.
|
4
|
+
ci_toolkit (1.4.13)
|
5
5
|
faraday
|
6
6
|
faraday_middleware
|
7
7
|
jwt
|
@@ -15,7 +15,7 @@ GEM
|
|
15
15
|
addressable (2.8.0)
|
16
16
|
public_suffix (>= 2.0.2, < 5.0)
|
17
17
|
ast (2.4.2)
|
18
|
-
date (3.2.
|
18
|
+
date (3.2.1)
|
19
19
|
diff-lcs (1.4.4)
|
20
20
|
docile (1.4.0)
|
21
21
|
faraday (1.8.0)
|
@@ -13,12 +13,14 @@ module CiToolkit
|
|
13
13
|
def initialize(options = {
|
14
14
|
build_number: ENV["BITRISE_BUILD_NUMBER"],
|
15
15
|
token: ENV["BITRISE_TOKEN"],
|
16
|
-
app_slug: ENV["BITRISE_APP_SLUG"]
|
16
|
+
app_slug: ENV["BITRISE_APP_SLUG"],
|
17
|
+
build_slug: ENV["BITRISE_BUILD_SLUG"]
|
17
18
|
},
|
18
19
|
faraday = nil)
|
19
20
|
@build_number = options[:build_number].to_i
|
20
21
|
@token = options[:token]
|
21
22
|
@app_slug = options[:app_slug]
|
23
|
+
@build_slug = options[:build_slug]
|
22
24
|
@connection = faraday || create_connection
|
23
25
|
end
|
24
26
|
|
@@ -51,6 +53,8 @@ module CiToolkit
|
|
51
53
|
|
52
54
|
def abort_pull_request_builds(pull_request, branch, commit = nil)
|
53
55
|
find_pull_request_builds(pull_request, branch, commit).each do |build|
|
56
|
+
next if build["slug"] == @build_slug
|
57
|
+
|
54
58
|
@connection.post("/#{API_VERSION}/apps/#{@app_slug}/builds/#{build["slug"]}/abort", {
|
55
59
|
abort_reason: "Aborting due to other build failed for pull request #{pull_request}"
|
56
60
|
})
|
data/lib/ci_toolkit/build.rb
CHANGED
@@ -50,9 +50,9 @@ release branch with semantic versioning, eg. release/x.y.z"
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def tag_name(build_number = nil)
|
53
|
-
return "
|
53
|
+
return version.to_s if version.include?("-build.") || build_number.nil?
|
54
54
|
|
55
|
-
version
|
55
|
+
"#{version}-build.#{build_number}"
|
56
56
|
end
|
57
57
|
end
|
58
58
|
end
|
data/lib/ci_toolkit/git.rb
CHANGED
@@ -12,9 +12,9 @@ module CiToolkit
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def for_new_build(name, version_name, tag)
|
15
|
-
"#### New `#{name}` build deployed 🚀\nVersion **#{version_name}** with
|
16
|
-
|
17
|
-
|
15
|
+
"#### New `#{name}` build deployed 🚀\nVersion **#{version_name}** with\
|
16
|
+
build number **#{@build.number}** on tag **#{tag}** deployed\
|
17
|
+
from [this](#{@build.url}) build"
|
18
18
|
end
|
19
19
|
|
20
20
|
def for_build_failure(reason)
|
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.4.
|
4
|
+
version: 1.4.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gero Keller
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|