I have a private repo that belongs to my organization on GitHub. Is there any way to add members to this repo (or to a team) using GitHub CLI or any other API that allows me to perform this action programmatically?
Add collaborator to rope by CLI:
# GitHub CLI api
# https://cli.github.com/manual/gh_api
gh api \
--method PUT \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/OWNER/REPO/collaborators/USERNAME \
-f permission='triage'