danger 5.6.5 → 5.6.6

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
  SHA256:
3
- metadata.gz: 9634f9dea12a31a161bc5fdba8db346a1a74d9240211cbbedb14afbf9f8e603a
4
- data.tar.gz: d3928993f3c54ab463edca3ec8882e9489d9485e2c6bb36c8bc90b97db0f4065
3
+ metadata.gz: 6722a08820a85ec60408d2fc93329a826aaed25a4425638417698bee2d77df7b
4
+ data.tar.gz: c0e7b028098a0b5e8d427d9516c09231b1fa068998266828a65e989995fb0c83
5
5
  SHA512:
6
- metadata.gz: ba5905c40af7697c041d1406ff801daf43e778906348e265ce94b2b4ac3462e29c0e73f437bf00850e72fdf181f05b4d06f371e5f2e3e659e45c637e7c42b17d
7
- data.tar.gz: a2dfc690f5fd56c0109206b8e34f617661be01c720e9993c786f5cbefe7da71fb6f8f615e8c082a289c716aa3aa6402e79d034e2259da41744da50f8e5e9f58a
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
- # fail "Please add labels to this PR" if bitbucket_cloud.pr_labels.empty?
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
- # fail "Please provide a summary in the Pull Request description" if bitbucket_cloud.pr_body.length < 5
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
- # fail "Please re-submit this PR to develop, we may have already fixed your issue." if bitbucket_cloud.branch_for_base != "develop"
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
- # fail "Please add labels to this PR" if bitbucket_server.pr_labels.empty?
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
- # fail "Please provide a summary in the Pull Request description" if bitbucket_server.pr_body.length < 5
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
- # fail "Please re-submit this PR to develop, we may have already fixed your issue." if bitbucket_server.branch_for_base != "develop"
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
- # fail "Don't delete my precious" if deleted
17
+ # failure "Don't delete my precious" if deleted
18
18
  #
19
19
  # @example Fail really big diffs
20
20
  #
21
- # fail "We cannot handle the scale of this PR" if git.lines_of_code > 50_000
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
- # fail "Please add labels to this PR" if github.pr_labels.empty?
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
- # fail "Please provide a summary in the Pull Request description" if github.pr_body.length < 5
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
- # fail "Please re-submit this PR to develop, we may have already fixed your issue." if github.branch_for_base != "develop"
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
- # fail "Please add labels to this MR" if gitlab.mr_labels.empty?
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
- # fail "Please provide a summary in the Merge Request description" if gitlab.mr_body.length < 5
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
- # fail "Please re-submit this MR to develop, we may have already fixed your issue." if gitlab.branch_for_merge != "develop"
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
- # fail 'Ooops', 'bad bad error', sticky: false
20
+ # failure 'Ooops', 'bad bad error', sticky: false
21
21
  # markdown '# And', '# Even', '# Markdown', file: "Dangerfile", line: 1
22
22
  #
23
- # By default, using `fail` would fail the corresponding build. Either via an API call, or
24
- # via the return value for the danger command. If you have linters with errors for this call
25
- # you can use `messaging.fail` instead.
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
- # fail "This build didn't pass tests"
37
- # fail "Ooops!", "Something bad happend"
38
- # fail ["This is example", "with array"]
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
- # fail("This build didn't pass tests", sticky: true)
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
- # fail "Please provide a summary in the Pull Request description" if vsts.pr_body.length < 5
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
- # fail "Please re-submit this PR to develop, we may have already fixed your issue." if vsts.branch_for_base != "develop"
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
  #
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "5.6.5".freeze
2
+ VERSION = "5.6.6".freeze
3
3
  DESCRIPTION = "Like Unit Tests, but for your Team Culture.".freeze
4
4
  end
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.5
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-04 00:00:00.000000000 Z
12
+ date: 2018-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: claide