def make_update_map_labels(self):
        """
        Go through the label make and make sure they all exist, with the appropriate colors
        """ 
        msgt('Match label map names/color to GitHub')   
        
        for label_info in self.label_map.get_label_info_objects():
            
            msg((label_info.github_label_name, label_info.github_label_color) % '\nCheck label: %s %s')

            #  (1) try to get label
            #
            msg('  (1) Try to retrieve label')            
            label_url = 'https://api.github.com/repos/%s/%s/labels/%s' % (GITHUB_TARGET_USERNAME, GITHUB_TARGET_REPOSITORY, label_info.github_label_name)
            req = requests.get(label_url, auth=self.auth)
            msg('url: %s' % label_url)
            msg('status: %s' % req.status_code)
            
            #  (2) Label exists
            if req.status_code == 200:
                github_label_info = req.json()
                msg('-- label exists\n %s' % github_label_info)
                #print label_info
                
                # (2a) Color matches! -- all done
                if github_label_info.get('color', 'nope') == label_info.github_label_color:
                    msg('-- color matches!')
                    continue
                  
                # (2b) Color doesn't match -- update color
                msg('  (2b) Try to update label color')
                label_url = 'https://api.github.com/repos/%s/%s/labels/%s' % (GITHUB_TARGET_USERNAME, GITHUB_TARGET_REPOSITORY, label_info.github_label_name)
                data = dict(name=label_info.github_label_name\
                            , color=label_info.github_label_color)
                req = requests.patch(label_url, data=json.dumps(data), auth=self.auth)
                if req.status_code == 200:
                    msg('  Color updated!')
                    msg(req.text)
                    continue
                msgx('Color updated failed!')
            
            # (3) Create new label with color
            msg('  (3) Try to create label')
            label_url = 'https://api.github.com/repos/%s/%s/labels' % (GITHUB_TARGET_USERNAME, GITHUB_TARGET_REPOSITORY)
            data = dict(name=label_info.github_label_name\
                        , color=label_info.github_label_color)
            req = requests.post(label_url, data=json.dumps(data), auth=self.auth)
            msg(req.text)
            msg(req.status_code)
            if req.status_code in [ 200, 201]:
                msg('Label created with color!')
                continue
            else:
                msgx('Create label with color failed!')
dataset/ETHPy150Open IQSS/redmine2github/src/github_issues/label_helper.py/LabelHelper.make_update_map_labels/swapped operands of `%`