Skip to main content

Git

Git

You could attach some useful git data to your bug report (eg. curent branch, commit...)

App.kt
import com.shakebugs.shake.Shake
private fun loadGitDetails() {
String branchName = getBranchName()
String commitHash = getCommitHash()
String commitDate = getCommitDate()
Shake.setMetadata("commitHash", commitHash)
Shake.setMetadata("commitDate", commitDate)
Shake.setMetadata("branch", branchName)
}