Skip to contents

This function verifies whether a GitHub user is authorized to modify specific model IDs in a Hub by checking the designated users in model metadata.

Usage

check_authorized_users(changed_model_ids, gh_actor, base_hub_path)

Arguments

changed_model_ids

Character vector. Model IDs that have been modified.

gh_actor

Character. GitHub username of the person making changes.

base_hub_path

Character. Path to the base hub directory.

Value

NULL, invisibly, raising an error if the user is unauthorized and printing a success message if the user is authorized.