Class: Fastlane::Actions::LastGitCommitAction
Constant Summary
Fastlane::Action::AVAILABLE_CATEGORIES
Class Method Summary
collapse
action_name, authors, available_options, details, lane_context, method_missing, other_action, output, sh, step_text
Class Method Details
.author ⇒ Object
20
21
22
|
# File 'lib/fastlane/actions/last_git_commit.rb', line 20
def self.author
"ngutman"
end
|
.category ⇒ Object
38
39
40
|
# File 'lib/fastlane/actions/last_git_commit.rb', line 38
def self.category
:source_control
end
|
.description ⇒ Object
12
13
14
|
# File 'lib/fastlane/actions/last_git_commit.rb', line 12
def self.description
"Return last git commit hash, abbreviated commit hash, commit message and author"
end
|
.example_code ⇒ Object
28
29
30
31
32
33
34
35
36
|
# File 'lib/fastlane/actions/last_git_commit.rb', line 28
def self.example_code
[
'commit = last_git_commit
crashlytics(notes: commit[:message]) # message of commit
author = commit[:author] # author of the commit
hash = commit[:commit_hash] # long sha of commit
short_hash = commit[:abbreviated_commit_hash] # short sha of commit'
]
end
|
.is_supported?(platform) ⇒ Boolean
24
25
26
|
# File 'lib/fastlane/actions/last_git_commit.rb', line 24
def self.is_supported?(platform)
true
end
|
.return_value ⇒ Object
16
17
18
|
# File 'lib/fastlane/actions/last_git_commit.rb', line 16
def self.return_value
"Returns the following dict: {commit_hash: \"commit hash\", abbreviated_commit_hash: \"abbreviated commit hash\" author: \"Author\", message: \"commit message\"}"
end
|
.sample_return_value ⇒ Object
42
43
44
45
46
47
48
49
|
# File 'lib/fastlane/actions/last_git_commit.rb', line 42
def self.sample_return_value
{
message: "message",
author: "author",
commit_hash: "commit_hash",
abbreviated_commit_hash: "short_hash"
}
end
|