* Disambiguates branch names by decorating them with the commit author name. * We do this for all non-push builds in order to prevent them from being used * as baselines for future builds.
()
| 117 | * as baselines for future builds. |
| 118 | */ |
| 119 | function setPercyBranch() { |
| 120 | if (!process.env['PERCY_BRANCH'] && (!argv.main || !isCiBuild())) { |
| 121 | const userName = gitCommitterEmail(); |
| 122 | const branchName = gitBranchName(); |
| 123 | process.env['PERCY_BRANCH'] = userName + '-' + branchName; |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * Set the branching point's SHA to an env variable. |
no test coverage detected