Skip to content

last_git_commit

Community Action Reference: Inspected directly from Fastlane core ruby gem definitions.

Supported Platforms: ios, android, mac

Return last git commit hash, abbreviated commit hash, commit message and author

Parameters & Options

This action takes no parameters or options.

Examples

commit = last_git_commit
pilot(changelog: commit[:message]) # message of commit
author = commit[:author] # author of the commit
author_email = commit[:author_email] # email of the author of the commit
hash = commit[:commit_hash] # long sha of commit
short_hash = commit[:abbreviated_commit_hash] # short sha of commit

Source & Upstream