Class: Fastlane::Actions::GitBranchAction
Constant Summary
Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES
Class Method Summary
collapse
action_name, author, deprecated_notes, lane_context, method_missing, other_action, return_value, sample_return_value, shell_out_should_use_bundle_exec?, step_text
Class Method Details
.authors ⇒ Object
32
33
34
|
# File 'fastlane/lib/fastlane/actions/git_branch.rb', line 32
def self.authors
["KrauseFx"]
end
|
.available_options ⇒ Object
22
23
24
|
# File 'fastlane/lib/fastlane/actions/git_branch.rb', line 22
def self.available_options
[]
end
|
.category ⇒ Object
50
51
52
|
# File 'fastlane/lib/fastlane/actions/git_branch.rb', line 50
def self.category
:source_control
end
|
.description ⇒ Object
14
15
16
|
# 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
|
.details ⇒ Object
18
19
20
|
# 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
|
.example_code ⇒ Object
40
41
42
43
44
|
# File 'fastlane/lib/fastlane/actions/git_branch.rb', line 40
def self.example_code
[
'git_branch'
]
end
|
.is_supported?(platform) ⇒ Boolean
36
37
38
|
# File 'fastlane/lib/fastlane/actions/git_branch.rb', line 36
def self.is_supported?(platform)
true
end
|
.output ⇒ Object
26
27
28
29
30
|
# File 'fastlane/lib/fastlane/actions/git_branch.rb', line 26
def self.output
[
['GIT_BRANCH_ENV_VARS', 'The git branch environment variables']
]
end
|
.return_type ⇒ Object
46
47
48
|
# File 'fastlane/lib/fastlane/actions/git_branch.rb', line 46
def self.return_type
:string
end
|
.run(params) ⇒ Object
4
5
6
7
8
|
# File 'fastlane/lib/fastlane/actions/git_branch.rb', line 4
def self.run(params)
branch = Actions.git_branch || ""
return "" if branch == "HEAD" branch
end
|