-
Notifications
You must be signed in to change notification settings - Fork 6
Repository Creation and Access
To create the respective repository, the tool sends requests to GitHub api endpoints, Provide teams with access to the created repository and create project and project columns when specified. The information on teams and team permissions is extracted from a pre-written csv file.
- Team Names for providing repository access
- Name of the repository and description to be given
- Organization Name and GitHub PAT
- CSV file for Team names and permissions mapped to each of the teams
- Name of the project to be added to the repository and column names of the project. This input is not mandatory, even without specifying the input the script will execute
Create an csv file listing the teams and the access levels to be established for the repository to allow multiple team access with different permissions. The tool will search for this excel file and give the listed teams access to the repository. Check below for the sample.

Clone the repository and run the below commands.
-
Install the required modules
pip install -r requirements.txt -
Run the autocreate script with the following command and give the required inputs
python git_autocreate.py -
Provide the required inputs.

-
Run the autocreate script with the following command all in a single line
python git_autocreate.py -t token -o orgname -v repovisibility -r reponame -f "./team_permissions.csv" -d "repo description" -p projectname -c "column1,column2,column3" python git_autocreate.py --Token token --Organization orgname --Visibility repovisibility --Repository reponame --File "./team_permissions.csv" -- Description "repo description" --Project projectname --Columns "column1,column2,column3"
- The new repository is created and the csv input file provides access to teams with appropriate permissions
- When the project columns input is specified, project with the specified column names will be created for the repository. Any automation must be manually enabled