Closed gaborbernat closed 4 years ago
GIT_COMMIT
should be the full SHA of the commit currently being tested. GIT_BRANCH
should be the branch name for the current CI run, i.e. the branch of the PR, or master
for a master branch CI run, etc.
Does that clarify things?
So in case of a pull request from a fork:
No, for a fork the GIT_COMMIT
should be the HEAD SHA of the PR on the fork side, and similarly the branch should be the branch name of the PR on the fork side.
@gaborbernat I spent some time making a template for Azure Devops.
@wfleming you should probably document this somewhere and this issue can be closed.
I've given up a long time ago on using codeclimate to instability and lack of feedback, so from my side free to close it.
Hello,
I'm trying to do an Azure Pipelines integration (https://github.com/tox-dev/tox) and had trouble to identify what values should I set for the environment variables in case of a PR. A pull request can be against either the upstream or a fork. In case of a pull request we have three commits:
ref/pr/18/merge
).My question is in such case what value should be set to GIT_BRANCH, and GIT_COMMIT; so that reporting is correct and the Github PR checks are correctly triggered/showed.
I've already reached out to @codeclimate customer support, and Emily encouraged me to open this issue to clarify things.