last_git_commit¶
Return last git commit hash, abbreviated commit hash, commit message and author
last_git_commit | |
---|---|
Supported platforms | ios, android, mac |
Author | @ngutman |
Returns | Returns the following dict: |
1 Example¶
commit = last_git_commit
crashlytics(notes: 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
To show the documentation in your terminal, run
fastlane action last_git_commit