in importer.py [0:0]
def __init__(self, options, project):
self.options = options
self.project = project
self.github_url = 'https://api.github.com/repos/%s/%s' % (
self.options.account, self.options.repo)
self.jira_issue_replace_patterns = {
'https://issues.jenkins.io/browse/%s%s' % (self.project.name, r'-(\d+)'): r'\1',
self.project.name + r'-(\d+)': Importer._GITHUB_ISSUE_PREFIX + r'\1',
r'Issue (\d+)': Importer._GITHUB_ISSUE_PREFIX + r'\1'}
self.headers = {
'Accept': 'application/vnd.github.golden-comet-preview+json',
'Authorization': f'token {options.accesstoken}'
}
self.labels_mapping = fetch_labels_mapping()
self.approved_labels = fetch_allowed_labels()