Skip to contents

This function processes a list of changed files from a GitHub workflow, errors on any changes outside model-output directory, and passes model IDs to check_authorized_users for authorization validation.

Usage

check_changes_for_autoapproval(changed_files, gh_actor, base_hub_path)

Arguments

changed_files

Character vector. List of changed file paths from the GitHub changed-files workflow output.

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 changes are outside model-output or if the user is unauthorized.