* Returns the name of the branch from which the PR originated. * @return {string}
()
| 130 | * @return {string} |
| 131 | */ |
| 132 | function gitBranchName() { |
| 133 | return isPullRequestBuild() |
| 134 | ? ciPullRequestBranch() |
| 135 | : getStdout('git rev-parse --abbrev-ref HEAD').trim(); |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * Returns the commit hash of the latest commit. |
no test coverage detected