danger 5.12.0 → 5.13.0

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: 073d0e00dcf8fab23ef166afb9084ec50c86e7f739616650f716e2d3f8074a6f
4
- data.tar.gz: 6122124ff2f3cbad49516ff8a883917f91132f6e97926413508f856c322d766b
3
+ metadata.gz: f22280b15d14004d5087e64d8d576819b63694288d5541a71f25eb2d6baeecdc
4
+ data.tar.gz: 2964dbf7b7a4389c7be8e293dc0bbabcfe21419fe4a18b04b6d77e6b129ebf2d
5
5
  SHA512:
6
- metadata.gz: 46c3511779f86f30194e3246f1e8ca3fb6c7b879c3728b511b3d5df9935dfd83f5c7b86bd31502550d6820f5a8ca7533966f9d849332b9078e639cd5abd32b48
7
- data.tar.gz: 29d0f8f813403dc039f6e2eef1b7170de5f3161b4d61702f7716387b9d58360b173fef1fbf636014e69bfa04cfbb26a80623d43bb50172b928c68cafe9d72189
6
+ metadata.gz: 2a6de8ea2f5cf3a80d4aa45dab2bd47980d11fcde6569d321623155b244a67668e213af664d9ee54f39f8653c7ce0d15683dcfe9030c169f28d194c65a778027
7
+ data.tar.gz: cb4d77b72b305259ca17670f334988c229ab18604db04896c39a0d954fc3d742ae0a35e54d8ca56b4c89fb19a7a4a4d97a07853b2b5e358bfd49f578655f0f38
@@ -0,0 +1,35 @@
1
+ module Danger
2
+ # ### CI Setup
3
+ #
4
+ # Install dependencies and add a danger step to your `bitbucket-pipelines.yml`.
5
+ # ```yaml
6
+ # script:
7
+ # - bundle exec danger --verbose
8
+ # ```
9
+ #
10
+ # #### Token Setup
11
+ #
12
+ # Add `DANGER_BITBUCKETCLOUD_USERNAME` and `DANGER_BITBUCKETCLOUD_USERNAME` to your pipeline repository variable.
13
+ # Settings > Pipelines > Repository Variables
14
+
15
+ class BitbucketPipelines < CI
16
+
17
+ def self.validates_as_ci?(env)
18
+ env.key? "BITBUCKET_BUILD_NUMBER"
19
+ end
20
+
21
+ def self.validates_as_pr?(env)
22
+ env.key? "BITBUCKET_PR_ID"
23
+ end
24
+
25
+ def supported_request_sources
26
+ @supported_request_sources ||= [Danger::RequestSources::BitbucketCloud]
27
+ end
28
+
29
+ def initialize(env)
30
+ self.repo_url = env["BITBUCKET_GIT_HTTP_ORIGIN"]
31
+ self.repo_slug = "#{env["BITBUCKET_REPO_OWNER"]}/#{env["BITBUCKET_REPO_SLUG"]}"
32
+ self.pull_request_id = env["BITBUCKET_PR_ID"]
33
+ end
34
+ end
35
+ end
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "5.12.0".freeze
2
+ VERSION = "5.13.0".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.12.0
4
+ version: 5.13.0
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: 2019-01-24 00:00:00.000000000 Z
12
+ date: 2019-01-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: claide
@@ -180,6 +180,7 @@ files:
180
180
  - lib/assets/DangerfileTemplate
181
181
  - lib/danger.rb
182
182
  - lib/danger/ci_source/appveyor.rb
183
+ - lib/danger/ci_source/bitbucket_pipelines.rb
183
184
  - lib/danger/ci_source/bitrise.rb
184
185
  - lib/danger/ci_source/buddybuild.rb
185
186
  - lib/danger/ci_source/buildkite.rb