class Fastlane::Actions::GitInfoExtractAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/git_info_extract/actions/git_info_extract_action.rb, line 30 def self.available_options [ FastlaneCore::ConfigItem.new(key: :author, env_name: "GIT_INFO_EXTRACT_AUTHOR", description: "commit author", optional: false, type: String) ] end
description()
click to toggle source
# File lib/fastlane/plugin/git_info_extract/actions/git_info_extract_action.rb, line 13 def self.description "Extract JIRA information from git merge" end
details()
click to toggle source
# File lib/fastlane/plugin/git_info_extract/actions/git_info_extract_action.rb, line 25 def self.details # Optional: "using git log to get infomation" end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/git_info_extract/actions/git_info_extract_action.rb, line 40 def self.is_supported?(platform) [:ios, :mac, :android].include?(platform) end
return_value()
click to toggle source
# File lib/fastlane/plugin/git_info_extract/actions/git_info_extract_action.rb, line 21 def self.return_value # If your method provides a return value, you can describe here what it does end
run(params)
click to toggle source
# File lib/fastlane/plugin/git_info_extract/actions/git_info_extract_action.rb, line 4 def self.run(params) author = params[:author] latestSquashCommitLog = sh ("git log -n 1 --date-order --pretty='%B' --branches=develop* --author=#{author.shellescape}*").chomp latestSquashCommitLog end