not?
This script needs the github cmd gh
to be in path and configured
- clone this repo and run
yarn install
- if you want, you can change the owner name in
config.js
. by default, it will be using the authenticated user withgh
. - check the
listConfig
inconfig.js
to match the repositories you want to change visibility - you can check the repository list by running
yarn list-repo
- if you don't want some of these to be changed, put them on
ignoreRepositories
in theconfig.js
file - run
yarn start
ornode index.js
to change the visibility for your github projects.
- owner: Repository owner (ex:
"thejoaov"
) - ignoreRepositories: Array of repositories you DON'T want to change (ex:
["thejoaov", "installation-scripts"]
) - visibility: The visibility to be changed to (ex:
"private"
) - listConfig: Parameters to be passed to gh when listing repositories. You can check all the options available by running
gh repo list --help
.