Last active
January 26, 2023 16:02
Revisions
-
necojackarc renamed this gist
Jan 26, 2023 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
necojackarc revised this gist
Jan 26, 2023 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,8 @@ - You have the permission to list all repositories in your organisation ```bash # 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}; -
necojackarc revised this gist
Jan 26, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ gh repo list -L 50 <organisation> | \ # 50 is the number of repositories to be listed awk '{print $1}' | \ while read line; \ do yes | gh repo-collab add $line <handle> --permission {pull|triage|push|maintain|admin}; done ``` -
necojackarc renamed this gist
Jan 26, 2023 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
necojackarc renamed this gist
Jan 26, 2023 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
necojackarc renamed this gist
Jan 26, 2023 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
necojackarc created this gist
Jan 26, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ ## Conditions - You have [GitHub CLI](https://github.com/cli/cli) installed and logged in - You have [gh repo-collab extention](https://github.com/mislav/gh-repo-collab) intalled - You have the permission to list all repositories in your organisation ```bash gh repo list -L 50 <organisation> | \ # 50 is the number of repositories to be listed awk '{print $1}' | \ while read line; \ do yes | gh repo-collab add $line '<username|team-name>' --permission <pull>; done ``` ## Links - [Add collaborators to repo #2807](https://github.com/cli/cli/issues/2807) - [mislav/gh-repo-collab](https://github.com/mislav/gh-repo-collab)