class Fastlane::Actions::GitBranchAction
Public Class Methods
Source
# File fastlane/lib/fastlane/actions/git_branch.rb, line 22 def self.available_options [] end
Source
# File fastlane/lib/fastlane/actions/git_branch.rb, line 50 def self.category :source_control end
Source
# File fastlane/lib/fastlane/actions/git_branch.rb, line 14 def self.description "Returns the name of the current git branch, possibly as managed by CI ENV vars" end
@!group Documentation
Source
# File fastlane/lib/fastlane/actions/git_branch.rb, line 18 def self.details "If no branch could be found, this action will return an empty string. If `FL_GIT_BRANCH_DONT_USE_ENV_VARS` is `true`, it'll ignore CI ENV vars. This is a wrapper for the internal action Actions.git_branch" end
Source
# File fastlane/lib/fastlane/actions/git_branch.rb, line 40 def self.example_code [ 'git_branch' ] end
Source
# File fastlane/lib/fastlane/actions/git_branch.rb, line 36 def self.is_supported?(platform) true end
Source
# File fastlane/lib/fastlane/actions/git_branch.rb, line 26 def self.output [ ['GIT_BRANCH_ENV_VARS', 'The git branch environment variables'] ] end
Source
# File fastlane/lib/fastlane/actions/git_branch.rb, line 46 def self.return_type :string end
Source
# File fastlane/lib/fastlane/actions/git_branch.rb, line 4 def self.run(params) branch = Actions.git_branch || "" return "" if branch == "HEAD" # Backwards compatibility with the original (and documented) implementation branch end