doctr
doctr copied to clipboard
fix travis pr check
based on the docs : https://docs.travis-ci.com/user/environment-variables/
TRAVIS_PULL_REQUEST: The pull request number if the current job is a pull request, “false” if it’s not a pull request.
This closes #199
I think the test failure is relevant here.
oh crap I will check it out @asmeurer
@asmeurer seems like this requires some more thought as I don't think https://github.com/drdoctr/doctr/blob/421aefdc0246713727f50d17669ff4f0efda684c/doctr/main.py#L270 would work. It would work for branch within the same repo but not on a different repo (like my fork for eg.). What do you suggest in this scenario?
Hmm. It seems really that should be use the merge commit generated by Travis, not the original branch.