Open peterjc opened 5 years ago
Looks like the doctr tests don't even pass on fork builds. I need to finish https://github.com/drdoctr/doctr/pull/343.
Oh actually I think that test failure is legitimate. It's a test for this function. So it should be updated.
I think I never considered the fact that someone would push a tag to their fork, but this looks correct.
If
$TRAVIS_TAG
and--build-tags
are set, then we getcanpush=True
without checking all rules, e.g. If the repository was a fork, then the push should be prevented.As an aside, I noticed this edge can while looking at issue #342 (there are legitimate cases where it is reasonable to want to push from a forked repository).