-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathgit_autocreate.py
27 lines (24 loc) · 1.22 KB
/
git_autocreate.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
'''
The tool will communicate with the repositories and organizations of GitHub.
This tool is intended to restrict manual labour as much as possible.
The tool with the help of few inputs will:
1. Create a repository - An empty repository will be created
2. Repository Access - The teams will be given access to the created repository based on the csv file input
3. Project - An empty project will be created for the repository with the Columns defined by the user.
'''
from modules.title import showTitle
from modules.initialise import initialiseInputs
from modules.createRepo import createRepo
from modules.teamAccess import provideTeamAccess
from modules.createProject import createProject
from sys import argv
argumentList = argv[1:]
initialisedValues = initialiseInputs(argumentList)
inputObject, head, csvReader, type = initialisedValues['inputObject'], initialisedValues['head'], initialisedValues['csvReader'], initialisedValues['type']
showTitle()
createRepo(inputObject, head, type)
provideTeamAccess(inputObject, head, csvReader)
if not inputObject.ProjectName or not inputObject.Columns:
print("\nProject Name or Columns not Specified. Skipping Project Creation\n")
else:
createProject(inputObject, head)