// GetRepositoryFromScope returns the repository from a scope
GetRepositoryFromScope returns the repository from a scope
// GetRepositoryFromScope returns the repository from a scope
func GetRepositoryFromScope(scope string) string {
	parts := strings.Split(scope, ":")
	for i, p := range parts {
		if p == "repository" && len(parts) > i {
			return parts[i+1]
		}
	}
	return ""
}
func GetRepositoryFromScope ( scope string ) string { parts := strings . Split ( scope , " " ) for i , p := range parts { if p == " " && len ( parts ) > i { return parts [ i + 1 ] } } return " " }
GetRepositoryFromScope returns the repository from a scope
GetRepositoryFromScope returns the repository from a scope