* Returns the commit hash of the latest commit. * @return {string}
()
| 140 | * @return {string} |
| 141 | */ |
| 142 | function gitCommitHash() { |
| 143 | if (isPullRequestBuild()) { |
| 144 | return ciPullRequestSha(); |
| 145 | } |
| 146 | return getStdout('git rev-parse --verify HEAD').trim(); |
| 147 | } |
| 148 | |
| 149 | /** |
| 150 | * Returns the email of the author of the latest commit on the local branch. |
no test coverage detected