Two repos with the same `publishURL`

What happens if I have two repos where publishURL=test ?
If no endpoints have the same name, will they deploy correctly ?

Yes. Conflicts are only at the endpoint level.