lib/danger/ci_source/bitbucket_pipelines.rb in danger-9.1.0 vs lib/danger/ci_source/bitbucket_pipelines.rb in danger-9.2.0

- old
+ new

@@ -14,11 +14,10 @@ # or instead using `DANGER_BITBUCKETCLOUD_OAUTH_KEY` and `DANGER_BITBUCKETCLOUD_OAUTH_SECRET`. # # You can find them in Settings > Pipelines > Repository Variables class BitbucketPipelines < CI - def self.validates_as_ci?(env) env.key? "BITBUCKET_BUILD_NUMBER" end def self.validates_as_pr?(env) @@ -29,10 +28,10 @@ @supported_request_sources ||= [Danger::RequestSources::BitbucketCloud] end def initialize(env) self.repo_url = env["BITBUCKET_GIT_HTTP_ORIGIN"] - self.repo_slug = "#{env["BITBUCKET_REPO_OWNER"]}/#{env["BITBUCKET_REPO_SLUG"]}" + self.repo_slug = "#{env['BITBUCKET_REPO_OWNER']}/#{env['BITBUCKET_REPO_SLUG']}" self.pull_request_id = env["BITBUCKET_PR_ID"] end end end