Sha256: 3fed91afd7fdc28a1fde8e335cacbc1e81c2cc2db2882b23567dbbfe2b7010bd

Contents?: true

Size: 509 Bytes

Versions: 26

Compression:

Stored size: 509 Bytes

Contents

class Terraspace::Cloud::Vcs::LocalGit
  class Bitbucket < Base
    def commit_url
      "#{host}/#{full_repo}/commits/#{sha}" if sha
    end

    def branch_url
      "#{host}/#{full_repo}/branch/#{branch_name}" if branch_name
    end

    # Also computed in ci plugins which detects it from the ci env.
    # Also handling here for case when user provides PR_NUMBER and GIT_REPO outside of normal CI env.
    def pr_url
      "#{host}/#{full_repo}/pull-requests/#{pr_number}" if pr_number
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
terraspace-2.2.17 lib/terraspace/cloud/vcs/local_git/bitbucket.rb
terraspace-2.2.16 lib/terraspace/cloud/vcs/local_git/bitbucket.rb
terraspace-2.2.15 lib/terraspace/cloud/vcs/local_git/bitbucket.rb
terraspace-2.2.14 lib/terraspace/cloud/vcs/local_git/bitbucket.rb
terraspace-2.2.13 lib/terraspace/cloud/vcs/local_git/bitbucket.rb
terraspace-2.2.12 lib/terraspace/cloud/vcs/local_git/bitbucket.rb
terraspace-2.2.11 lib/terraspace/cloud/vcs/local_git/bitbucket.rb
terraspace-2.2.10 lib/terraspace/cloud/vcs/local_git/bitbucket.rb
terraspace-2.2.9 lib/terraspace/cloud/vcs/local_git/bitbucket.rb
terraspace-2.2.8 lib/terraspace/cloud/vcs/local_git/bitbucket.rb
terraspace-2.2.7 lib/terraspace/cloud/vcs/local_git/bitbucket.rb
terraspace-2.2.6 lib/terraspace/cloud/vcs/local_git/bitbucket.rb
terraspace-2.2.5 lib/terraspace/cloud/vcs/local_git/bitbucket.rb
terraspace-2.2.4 lib/terraspace/cloud/vcs/local_git/bitbucket.rb
terraspace-2.2.3 lib/terraspace/cloud/vcs/local_git/bitbucket.rb
terraspace-2.2.2 lib/terraspace/cloud/vcs/local_git/bitbucket.rb
terraspace-2.2.1 lib/terraspace/cloud/vcs/local_git/bitbucket.rb
terraspace-2.2.0 lib/terraspace/cloud/vcs/local_git/bitbucket.rb
terraspace-2.1.7 lib/terraspace/cloud/vcs/local_git/bitbucket.rb
terraspace-2.1.6 lib/terraspace/cloud/vcs/local_git/bitbucket.rb