Created
March 30, 2021 14:12
-
-
Save Karnak19/be1e4d7526ef38e822cf5bf367fa8fbc to your computer and use it in GitHub Desktop.
This file contains 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 characters
const { exec } = require("child_process"); | |
const users = [ | |
"Thiez-64", | |
"Chabelle78", | |
"aeryle", | |
"Tweaka", | |
"rcarondw", | |
"mryckewaert", | |
"vicwildcode", | |
"ThomasBarrial", | |
"Benwade-progldc", | |
"MatthiasWanner", | |
"JIdayyy", | |
]; | |
users.forEach((user) => { | |
exec( | |
`gh api -X PUT orgs/WildCodeSchool/teams/march2021-js-biarritz/memberships/${user}`, | |
(err) => { | |
if (err) console.error(err); | |
} | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment