danger 5.6.5 → 5.6.6
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/lib/danger/danger_core/plugins/dangerfile_bitbucket_cloud_plugin.rb +3 -3
- data/lib/danger/danger_core/plugins/dangerfile_bitbucket_server_plugin.rb +3 -3
- data/lib/danger/danger_core/plugins/dangerfile_git_plugin.rb +2 -2
- data/lib/danger/danger_core/plugins/dangerfile_github_plugin.rb +3 -3
- data/lib/danger/danger_core/plugins/dangerfile_gitlab_plugin.rb +3 -3
- data/lib/danger/danger_core/plugins/dangerfile_messaging_plugin.rb +10 -8
- data/lib/danger/danger_core/plugins/dangerfile_vsts_plugin.rb +2 -2
- data/lib/danger/version.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: 6722a08820a85ec60408d2fc93329a826aaed25a4425638417698bee2d77df7b
|
4
|
+
data.tar.gz: c0e7b028098a0b5e8d427d9516c09231b1fa068998266828a65e989995fb0c83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0e3c2710044d765c3487c2bdff272fafa01c5ddf628696022f3dd3e4c8ed80e147789ac3d88401c48c5a9e4bb0324ec5c1f9e54ce85192ecf16f9e6c70fa6eb
|
7
|
+
data.tar.gz: 56d68c16a9d9c70e055455d668bf3b3dd9ad77c38763aac509d2b72b021572cd2d1c25b23d6858f9baf5cd9bdee225963febfb61b798d3871036179c6aa645c7
|
@@ -16,15 +16,15 @@ module Danger
|
|
16
16
|
#
|
17
17
|
# @example Ensure that labels have been used on the PR
|
18
18
|
#
|
19
|
-
#
|
19
|
+
# failure "Please add labels to this PR" if bitbucket_cloud.pr_labels.empty?
|
20
20
|
#
|
21
21
|
# @example Ensure there is a summary for a PR
|
22
22
|
#
|
23
|
-
#
|
23
|
+
# failure "Please provide a summary in the Pull Request description" if bitbucket_cloud.pr_body.length < 5
|
24
24
|
#
|
25
25
|
# @example Only accept PRs to the develop branch
|
26
26
|
#
|
27
|
-
#
|
27
|
+
# failure "Please re-submit this PR to develop, we may have already fixed your issue." if bitbucket_cloud.branch_for_base != "develop"
|
28
28
|
#
|
29
29
|
# @example Highlight when a celebrity makes a pull request
|
30
30
|
#
|
@@ -16,15 +16,15 @@ module Danger
|
|
16
16
|
#
|
17
17
|
# @example Ensure that labels have been used on the PR
|
18
18
|
#
|
19
|
-
#
|
19
|
+
# failure "Please add labels to this PR" if bitbucket_server.pr_labels.empty?
|
20
20
|
#
|
21
21
|
# @example Ensure there is a summary for a PR
|
22
22
|
#
|
23
|
-
#
|
23
|
+
# failure "Please provide a summary in the Pull Request description" if bitbucket_server.pr_body.length < 5
|
24
24
|
#
|
25
25
|
# @example Only accept PRs to the develop branch
|
26
26
|
#
|
27
|
-
#
|
27
|
+
# failure "Please re-submit this PR to develop, we may have already fixed your issue." if bitbucket_server.branch_for_base != "develop"
|
28
28
|
#
|
29
29
|
# @example Highlight when a celebrity makes a pull request
|
30
30
|
#
|
@@ -14,11 +14,11 @@ module Danger
|
|
14
14
|
# @example Don't allow a file to be deleted
|
15
15
|
#
|
16
16
|
# deleted = git.deleted_files.include? "my/favourite.file"
|
17
|
-
#
|
17
|
+
# failure "Don't delete my precious" if deleted
|
18
18
|
#
|
19
19
|
# @example Fail really big diffs
|
20
20
|
#
|
21
|
-
#
|
21
|
+
# failure "We cannot handle the scale of this PR" if git.lines_of_code > 50_000
|
22
22
|
#
|
23
23
|
# @example Warn when there are merge commits in the diff
|
24
24
|
#
|
@@ -14,7 +14,7 @@ module Danger
|
|
14
14
|
#
|
15
15
|
# @example Ensure that labels have been used on the PR
|
16
16
|
#
|
17
|
-
#
|
17
|
+
# failure "Please add labels to this PR" if github.pr_labels.empty?
|
18
18
|
#
|
19
19
|
# @example Check if a user is in a specific GitHub org, and message them if so
|
20
20
|
#
|
@@ -24,11 +24,11 @@ module Danger
|
|
24
24
|
#
|
25
25
|
# @example Ensure there is a summary for a PR
|
26
26
|
#
|
27
|
-
#
|
27
|
+
# failure "Please provide a summary in the Pull Request description" if github.pr_body.length < 5
|
28
28
|
#
|
29
29
|
# @example Only accept PRs to the develop branch
|
30
30
|
#
|
31
|
-
#
|
31
|
+
# failure "Please re-submit this PR to develop, we may have already fixed your issue." if github.branch_for_base != "develop"
|
32
32
|
#
|
33
33
|
# @example Note when PRs don't reference a milestone, which goes away when it does
|
34
34
|
#
|
@@ -14,7 +14,7 @@ module Danger
|
|
14
14
|
#
|
15
15
|
# @example Ensure that labels have been applied to the MR.
|
16
16
|
#
|
17
|
-
#
|
17
|
+
# failure "Please add labels to this MR" if gitlab.mr_labels.empty?
|
18
18
|
#
|
19
19
|
# @example Ensure that all MRs have an assignee.
|
20
20
|
#
|
@@ -22,11 +22,11 @@ module Danger
|
|
22
22
|
#
|
23
23
|
# @example Ensure there is a summary for a MR.
|
24
24
|
#
|
25
|
-
#
|
25
|
+
# failure "Please provide a summary in the Merge Request description" if gitlab.mr_body.length < 5
|
26
26
|
#
|
27
27
|
# @example Only accept MRs to the develop branch.
|
28
28
|
#
|
29
|
-
#
|
29
|
+
# failure "Please re-submit this MR to develop, we may have already fixed your issue." if gitlab.branch_for_merge != "develop"
|
30
30
|
#
|
31
31
|
# @example Note when MRs don't reference a milestone, make the warning stick around on subsequent runs
|
32
32
|
#
|
@@ -17,12 +17,12 @@ module Danger
|
|
17
17
|
#
|
18
18
|
# message 'Hello', 'World', file: "Dangerfile", line: 1
|
19
19
|
# warn ['This', 'is', 'warning'], file: "Dangerfile", line: 1
|
20
|
-
#
|
20
|
+
# failure 'Ooops', 'bad bad error', sticky: false
|
21
21
|
# markdown '# And', '# Even', '# Markdown', file: "Dangerfile", line: 1
|
22
22
|
#
|
23
|
-
# By default, using `
|
24
|
-
# via the return value for the danger command.
|
25
|
-
#
|
23
|
+
# By default, using `failure` would fail the corresponding build. Either via an API call, or
|
24
|
+
# via the return value for the danger command. Older code examples use `fail` which is an alias
|
25
|
+
# of `failure`, but the default Rubocop settings would have an issue with it.
|
26
26
|
#
|
27
27
|
# You can optionally add `file` and `line` to provide inline feedback on a PR in GitHub, note that
|
28
28
|
# only feedback inside the PR's diff will show up inline. Others will appear inside the main comment.
|
@@ -33,13 +33,13 @@ module Danger
|
|
33
33
|
#
|
34
34
|
# @example Failing a build
|
35
35
|
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
36
|
+
# failure "This build didn't pass tests"
|
37
|
+
# failure "Ooops!", "Something bad happend"
|
38
|
+
# failure ["This is example", "with array"]
|
39
39
|
#
|
40
40
|
# @example Failing a build, and note that on subsequent runs
|
41
41
|
#
|
42
|
-
#
|
42
|
+
# failure("This build didn't pass tests", sticky: true)
|
43
43
|
#
|
44
44
|
# @example Passing a warning
|
45
45
|
#
|
@@ -178,6 +178,8 @@ module Danger
|
|
178
178
|
end
|
179
179
|
end
|
180
180
|
|
181
|
+
alias_method :failure, :fail
|
182
|
+
|
181
183
|
# @!group Reporting
|
182
184
|
# A list of all messages passed to Danger, including
|
183
185
|
# the markdowns.
|
@@ -16,11 +16,11 @@ module Danger
|
|
16
16
|
#
|
17
17
|
# @example Ensure there is a summary for a PR
|
18
18
|
#
|
19
|
-
#
|
19
|
+
# failure "Please provide a summary in the Pull Request description" if vsts.pr_body.length < 5
|
20
20
|
#
|
21
21
|
# @example Only accept PRs to the develop branch
|
22
22
|
#
|
23
|
-
#
|
23
|
+
# failure "Please re-submit this PR to develop, we may have already fixed your issue." if vsts.branch_for_base != "develop"
|
24
24
|
#
|
25
25
|
# @example Highlight when a celebrity makes a pull request
|
26
26
|
#
|
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.6.
|
4
|
+
version: 5.6.6
|
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: 2018-09-
|
12
|
+
date: 2018-09-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: claide
|