Skip to content

Instantly share code, notes, and snippets.

@Karnak19
Created March 30, 2021 14:12
Show Gist options
  • Save Karnak19/be1e4d7526ef38e822cf5bf367fa8fbc to your computer and use it in GitHub Desktop.
Save Karnak19/be1e4d7526ef38e822cf5bf367fa8fbc to your computer and use it in GitHub Desktop.
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