danger 5.0.0 → 5.0.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d067c562d43578651a43d425217f20956ea7b858
|
4
|
+
data.tar.gz: aeafb99774bdf963f6d19b31fc62cfd1dc777aef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56441fecbe0d64456a7b33f6485e454801d1d6618b1c1dfc2a8d27adc797e437df1c01af0a8f6a48c29ed797ddbfdabf873a445907b74c3c1df017d1147bc80d
|
7
|
+
data.tar.gz: ff3be7ffe9b5cce3b7a4434cae8ee7474b9a5d882d248532b646938a697c568b71c1508b0fb14d7c139ee3c4454f8b8c933a447bd813392fa203bc40e43007a7
|
@@ -22,7 +22,7 @@ module Danger
|
|
22
22
|
#
|
23
23
|
# @example Warn when there are merge commits in the diff
|
24
24
|
#
|
25
|
-
# if commits.any? { |c| c.message =~ /^Merge branch 'master'/ }
|
25
|
+
# if git.commits.any? { |c| c.message =~ /^Merge branch 'master'/ }
|
26
26
|
# warn 'Please rebase to get rid of the merge commits in this PR'
|
27
27
|
# end
|
28
28
|
#
|
@@ -11,7 +11,10 @@ module Danger
|
|
11
11
|
@username = environment["DANGER_BITBUCKETSERVER_USERNAME"]
|
12
12
|
@password = environment["DANGER_BITBUCKETSERVER_PASSWORD"]
|
13
13
|
self.host = environment["DANGER_BITBUCKETSERVER_HOST"]
|
14
|
-
self.
|
14
|
+
if !(self.host.include? "http://") && !(self.host.include? "https://")
|
15
|
+
self.host = "https://" + self.host
|
16
|
+
end
|
17
|
+
self.pr_api_endpoint = "#{host}/rest/api/1.0/projects/#{project}/repos/#{slug}/pull-requests/#{pull_request_id}"
|
15
18
|
end
|
16
19
|
|
17
20
|
def inspect
|
data/lib/danger/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Orta Therox
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-04-
|
12
|
+
date: 2017-04-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: claide
|