danger 4.3.1 → 4.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/danger/danger_core/dangerfile.rb +1 -1
- data/lib/danger/danger_core/plugins/dangerfile_bitbucket_cloud_plugin.rb +1 -0
- data/lib/danger/danger_core/plugins/dangerfile_bitbucket_server_plugin.rb +1 -0
- data/lib/danger/danger_core/plugins/dangerfile_github_plugin.rb +1 -1
- data/lib/danger/danger_core/plugins/dangerfile_gitlab_plugin.rb +1 -1
- data/lib/danger/request_sources/bitbucket_cloud.rb +1 -0
- data/lib/danger/request_sources/bitbucket_cloud_api.rb +1 -0
- data/lib/danger/request_sources/bitbucket_server.rb +1 -0
- data/lib/danger/request_sources/bitbucket_server_api.rb +1 -0
- data/lib/danger/request_sources/github/github.rb +1 -0
- data/lib/danger/request_sources/github/github_review.rb +1 -0
- data/lib/danger/request_sources/github/github_review_resolver.rb +1 -0
- data/lib/danger/request_sources/github/github_review_unsupported.rb +1 -0
- data/lib/danger/request_sources/github/octokit_pr_review.rb +1 -0
- data/lib/danger/request_sources/gitlab.rb +1 -1
- data/lib/danger/scm_source/git_repo.rb +4 -4
- data/lib/danger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7941b0c0f6d0d18603265ce8daed01d8075ea11
|
4
|
+
data.tar.gz: eeaea8c0c7947c8f0cdbd3e90415c93dc5510999
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bde2e5f4bdcbb18fdc5840175407c00b42929637e7de95cacd695c2ec6b440b174434d7205a995900de08543f23071dfd24f3c94c371f62daae34572eb4be26f
|
7
|
+
data.tar.gz: 29f6a0d0e9dd882ca98f31d53aff9c777f7e859e0078c7a89fe7702d5974ec6f6b1b779740df9212fdba6b747c7c7bb879fed5a9b2d26f6c4de4f57489dbfcdd
|
@@ -212,7 +212,7 @@ module Danger
|
|
212
212
|
return if (violations[:errors] + violations[:warnings] + violations[:messages] + status[:markdowns]).count.zero?
|
213
213
|
|
214
214
|
ui.section("Results:") do
|
215
|
-
|
215
|
+
%i(errors warnings messages).each do |key|
|
216
216
|
formatted = key.to_s.capitalize + ":"
|
217
217
|
title = case key
|
218
218
|
when :errors
|
@@ -234,7 +234,7 @@ module Danger
|
|
234
234
|
@github.dismiss_out_of_range_messages = dismiss == true
|
235
235
|
end
|
236
236
|
|
237
|
-
|
237
|
+
%i(title body author labels json).each do |suffix|
|
238
238
|
alias_method "mr_#{suffix}".to_sym, "pr_#{suffix}".to_sym
|
239
239
|
end
|
240
240
|
|
@@ -207,7 +207,7 @@ module Danger
|
|
207
207
|
paths.first(paths.count - 1).join(", ") + " & " + paths.last
|
208
208
|
end
|
209
209
|
|
210
|
-
|
210
|
+
%i(title body author labels json diff).each do |suffix|
|
211
211
|
alias_method "pr_#{suffix}".to_sym, "mr_#{suffix}".to_sym
|
212
212
|
end
|
213
213
|
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# coding: utf-8
|
2
|
+
|
2
3
|
require "danger/helpers/comments_helper"
|
3
4
|
require "danger/helpers/comment"
|
4
5
|
|
@@ -36,7 +37,6 @@ module Danger
|
|
36
37
|
params[:endpoint] = endpoint
|
37
38
|
|
38
39
|
@client ||= Gitlab.client(params)
|
39
|
-
|
40
40
|
rescue LoadError
|
41
41
|
puts "The GitLab gem was not installed, you will need to change your Gem from `danger` to `danger-gitlab`.".red
|
42
42
|
puts "\n - See https://github.com/danger/danger/blob/master/CHANGELOG.md#400"
|
@@ -37,7 +37,7 @@ module Danger
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def ensure_commitish_exists!(commitish)
|
40
|
-
|
40
|
+
git_in_depth_fetch if commit_not_exists?(commitish)
|
41
41
|
|
42
42
|
if commit_not_exists?(commitish)
|
43
43
|
raise_if_we_cannot_find_the_commit(commitish)
|
@@ -46,8 +46,8 @@ module Danger
|
|
46
46
|
|
47
47
|
private
|
48
48
|
|
49
|
-
def
|
50
|
-
exec("fetch --
|
49
|
+
def git_in_depth_fetch
|
50
|
+
exec("fetch --depth 1000000")
|
51
51
|
end
|
52
52
|
|
53
53
|
def default_env
|
@@ -70,7 +70,7 @@ module Danger
|
|
70
70
|
possible_merge_base = possible_merge_base(repo, from, to)
|
71
71
|
|
72
72
|
unless possible_merge_base
|
73
|
-
|
73
|
+
git_in_depth_fetch
|
74
74
|
possible_merge_base = possible_merge_base(repo, from, to)
|
75
75
|
end
|
76
76
|
|
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: 4.3.
|
4
|
+
version: 4.3.2
|
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-03-
|
12
|
+
date: 2017-03-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: claide
|