Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion github-api/list-users.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@ function list_users_with_read_access {
fi
}

# Main script
# Function to check if required arguments are passed
function check_arguments {
if [[ $# -ne 2 ]]; then
echo "Usage: $0 <repository_owner> <repository_name>"
exit 1
fi
}

# Main script
check_arguments "$@"
echo "Listing users with read access to ${REPO_OWNER}/${REPO_NAME}..."
list_users_with_read_access