Skip to content

bootcoder/git_mentors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Mentors

Overview

Allow a given user as owner to add a set of users to an org and teams.

Executing Script

This script relies on a OPTIONAL .env file which contains the following keys

  • GIT_EMAIL
  • GIT_PASSWORD

Add usernames to the git_mentors.rb initialize method under the varibale current_mentors. Or pass them as space delimited ARGV input to the script.

Basically, just run lib/git_mentors.rb and follow along. You'll figure it out ;-)

PSEUDO:

  • ask cli for username && password
  • Interface with github API
  • authenticate as the owner
  • get a list of owners orgs
  • ask cli to select org from list
  • display list of users to add
  • display confirmation
  • display list teams to add to
  • display confirmation
  • Interface with github API
  • iterate over user list
  • add each user to a given org and team
  • display confirmation and count when complete

Next Steps

  • Add tests
  • Add better CLI interface with confirmation for cohort org before add batch
  • add batch method which will parse over a given input
  • package into a gem and publish
  • maybe lose .env in favor of dynamically entering credentials each run

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages