- You have GitHub CLI installed and logged in
- You have gh repo-collab extention intalled
- You have the permission to list all repositories in your organisation
# 50 is the number of repositories to be listed
gh repo list -L 50 <organisation> | \
awk '{print $1}' | \
while read line; \
do yes | gh repo-collab add $line <handle> --permission {pull|triage|push|maintain|admin};
done