func LevelFromPermissions(permissions RepoPermissions) RepoPermissionLevel {
	if permissions.Admin {
		return Admin
	} else if permissions.Push {
		return Write
	} else if permissions.Pull {
		return Read
	} else {
		return None
	}
}
func LevelFromPermissions(permissions RepoPermissions) RepoPermissionLevel {
	if permissions.Admin {
		return Admin
	} else if permissions.Push {
		return Write
	} else if permissions.Pull {
		return Read
	} else {
		return None
	}
}
func LevelFromPermissions ( permissions RepoPermissions ) RepoPermissionLevel { if permissions . Admin { return Admin } else if permissions . Push { return Write } else if permissions . Pull { return Read } else { return None } }
// LevelFromPermissions adapts a repo permissions struct to the
// appropriate permission level used elsewhere
LevelFromPermissions adapts a repo permissions struct to the appropriate permission level used elsewhere