The `ctx.Repo.RefName` was used to be a "short name", it causes a lot of ambiguity. This PR does some refactoring and use `RefFullName` to replace the legacy `RefName`, and simplify RepoAssignment
unparam
DEFAULT_MIRROR_REPO_UNITS
DEFAULT_TEMPLATE_REPO_UNITS