Allow for scope to be a doc or a repo