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 +4 -4
- data/lib/danger/ci_source/bitbucket_pipelines.rb +35 -0
- data/lib/danger/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f22280b15d14004d5087e64d8d576819b63694288d5541a71f25eb2d6baeecdc
|
4
|
+
data.tar.gz: 2964dbf7b7a4389c7be8e293dc0bbabcfe21419fe4a18b04b6d77e6b129ebf2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
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
|