lib/danger/ci_source/bitrise.rb in danger-9.0.0 vs lib/danger/ci_source/bitrise.rb in danger-9.1.0
- old
+ new
@@ -17,17 +17,17 @@
#
# ### Token Setup
#
# Add the `DANGER_GITHUB_API_TOKEN` to your workflow's [Secret App Env Vars](https://blog.bitrise.io/anyone-even-prs-can-have-secrets).
#
- # ### bitbucket server and bitrsie
+ # ### bitbucket server and bitrise
#
- # Danger will read the environment variable GIT_REPOSITORY_URL to construct the Bitbucket Server API URL
- # finding the project and repo slug in the GIT_REPOSITORY_URL variable. This GIT_REPOSITORY_URL variable
- # comes from the App Settings tab for your Bitrsie App. If you are manually setting a repo URL in the
- # Git Clone Repo step, you may need to set adjust this propery in the settings tab, maybe even fake it.
- # The patterns used are `(%r{\.com/(.*)})` and `(%r{\.com:(.*)})` and .split(/\.git$|$/) to remove ".git" if the URL contains it.
+ # Danger will read the environment variable GIT_REPOSITORY_URL to construct the Bitbucket Server API URL
+ # finding the project and repo slug in the GIT_REPOSITORY_URL variable. This GIT_REPOSITORY_URL variable
+ # comes from the App Settings tab for your Bitrise App. If you are manually setting a repo URL in the
+ # Git Clone Repo step, you may need to set adjust this property in the settings tab, maybe even fake it.
+ # The patterns used are `(%r{\.com/(.*)})` and `(%r{\.com:(.*)})` and .split(/\.git$|$/) to remove ".git" if the URL contains it.
#
class Bitrise < CI
def self.validates_as_ci?(env)
env.key? "BITRISE_IO"
end
@@ -46,10 +46,10 @@
end
def initialize(env)
self.pull_request_id = env["BITRISE_PULL_REQUEST"]
self.repo_url = env["GIT_REPOSITORY_URL"]
-
+
matcher_url = self.repo_url
self.repo_slug = repo_slug_from(self.repo_url)
end
def repo_slug_from(url)