Commit 6aa87d1a authored by Edward Hervey's avatar Edward Hervey Committed by Daniel Stone
Browse files

Move GIT_ORIGIN_PREFIX to GitLab class

This removes the unused definition from bztogl.py.
parent 5b37324f
......@@ -53,8 +53,6 @@ COMPONENT_MAP = {
'Widget: GtkSpinButton': 'GtkSpinButton',
}
GIT_ORIGIN_PREFIX = 'https://git.gnome.org/browse/'
def processbug(bgo, target, user_cache, milestone_cache, bzbug):
print("Processing bug #%d: %s" % (bzbug.id, bzbug.summary))
......
......@@ -4,11 +4,10 @@ import urllib.parse
import gitlab
GIT_ORIGIN_PREFIX = 'https://git.gnome.org/browse/'
class GitLab:
GITLABURL = "https://gitlab-test.gnome.org/"
GIT_ORIGIN_PREFIX = 'https://git.gnome.org/browse/'
def __init__(self, token, product, target_project=None, automate=False):
self.gl = None
......@@ -80,7 +79,7 @@ class GitLab:
return ret_json.get('import_status')
def import_project(self):
import_url = GIT_ORIGIN_PREFIX + self.product
import_url = self.GIT_ORIGIN_PREFIX + self.product
print('Importing project from ' + import_url +
' to ' + self.target_project)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment