class Fastlane::Actions::GitRemoteBranchAction

Public Class Methods

authors() click to toggle source
# File fastlane/lib/fastlane/actions/git_remote_branch.rb, line 33
def self.authors
  ["SeanMcNeil"]
end
available_options() click to toggle source
# File fastlane/lib/fastlane/actions/git_remote_branch.rb, line 20
def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :remote_name,
                                 env_name: "FL_REMOTE_REPOSITORY_NAME",
                                 description: "The remote repository to check",
                                 optional: true)
  ]
end
category() click to toggle source
# File fastlane/lib/fastlane/actions/git_remote_branch.rb, line 52
def self.category
  :source_control
end
description() click to toggle source

@!group Documentation

# File fastlane/lib/fastlane/actions/git_remote_branch.rb, line 12
def self.description
  "Returns the name of the current git remote default branch"
end
details() click to toggle source
# File fastlane/lib/fastlane/actions/git_remote_branch.rb, line 16
def self.details
  "If no default remote branch could be found, this action will return nil. This is a wrapper for the internal action Actions.git_default_remote_branch_name"
end
example_code() click to toggle source
# File fastlane/lib/fastlane/actions/git_remote_branch.rb, line 41
def self.example_code
  [
    'git_remote_branch # Query git for first available remote name',
    'git_remote_branch(remote_name:"upstream") # Provide a remote name'
  ]
end
is_supported?(platform) click to toggle source
# File fastlane/lib/fastlane/actions/git_remote_branch.rb, line 37
def self.is_supported?(platform)
  true
end
output() click to toggle source
# File fastlane/lib/fastlane/actions/git_remote_branch.rb, line 29
def self.output
  []
end
return_type() click to toggle source
# File fastlane/lib/fastlane/actions/git_remote_branch.rb, line 48
def self.return_type
  :string
end
run(params) click to toggle source
# File fastlane/lib/fastlane/actions/git_remote_branch.rb, line 4
def self.run(params)
  Actions.git_remote_branch_name(params[:remote_name])
end