campaigns: Validate branch names
Created by: ryanslade
We follow the rules here: https://git-scm.com/docs/git-check-ref-format
Note, we do not require a slash as mentioned in rule 2 since a prefix of refs/heads/ is implied.
Closes: https://github.com/sourcegraph/sourcegraph/issues/10718