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

- old
+ new

@@ -37,10 +37,10 @@ "#{env['CF_REPO_OWNER']}/#{env['CF_REPO_NAME']}".downcase! end def initialize(env) - self.repo_url = env["CF_COMMIT_URL"].to_s.gsub(/\/commit.+$/, "") + self.repo_url = env["CF_COMMIT_URL"].to_s.gsub(%r{/commit.+$}, "") self.repo_slug = self.class.slug_from(env) self.pull_request_id = env["CF_PULL_REQUEST_NUMBER"] end end end