def __init__(self, name): self.name = name self.repo_list = [] self.sorted_issues_dict = defaultdict(list) # initialize the Github instance self.git_hub = Github( GITHUB_PROFILE.get('user_name'), GITHUB_PROFILE.get('password')) self.label_order_dict = { 'help wanted': 1, 'wontfix': 5, 'question': 2, 'bug': 4, 'enhancement': 3} self.label_order = ['help wanted', 'question', 'enhancement', 'bug', 'wontfix']
def __init__(self, name): self.name = name self.issues_dict = defaultdict(list) # initialize the Github instance self.git_hub = Github(GITHUB_PROFILE.get('user_name'), GITHUB_PROFILE.get('password')) # read all the repositories for this user self.repo_list = [CW_Repository(self.git_hub, name) for name in REPOSITORIES] # print "# of repositories = %d" % len(self.repo_list) # get all the label objects from Github # self.label_list = list(set([label for label_gen in label_gen_list for label in label_gen])) self.label_order_dict = { 'help wanted': 1, 'wontfix': 5, 'question': 2, 'bug': 4, 'enhancement': 3} self.label_order = ['help wanted', 'question', 'enhancement', 'bug', 'wontfix']