codeclimate / test-reporter

Code Climate Test Reporter
MIT License
154 stars 76 forks source link

Add Semaphore 2.0 Support #473

Closed thewatts closed 3 years ago

thewatts commented 3 years ago

This adds support for Semaphore’s internal ENV vars used for specifying the current git branch and git sha.

To note: In the instance of a PR, the SEMAPHORE_GIT_PR_BRANCH variable has the expected branch name, whereas if code is being run against a branch directly (ie: main), SEMAPHORE_GIT_BRANCH is where it can be found.

Given how the findVar code works - SEMAPHORE_GIT_BRANCH will function as a fallback for SEMAPHORE_GIT_PR_BRANCH.

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.

fede-moya commented 3 years ago

@thewatts released ! 👏🏼

thewatts commented 3 years ago

Thank you!!!