File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,11 @@ class Settings(BaseSettings):
23
23
24
24
# Jira
25
25
jira_base_url : str = "https://mozit-test.atlassian.net/"
26
- jira_issue_url : str = f"{ jira_base_url } browse/%s"
27
26
jira_username : str
28
27
jira_api_key : str
29
28
30
29
# Bugzilla
31
30
bugzilla_base_url : str = "https://bugzilla-dev.allizom.org"
32
- bugzilla_bug_url : str = f"{ bugzilla_base_url } /show_bug.cgi?id=%s"
33
31
bugzilla_api_key : str
34
32
35
33
# Logging
Original file line number Diff line number Diff line change @@ -121,11 +121,11 @@ def create_and_link_issue(self, payload):
121
121
)
122
122
return {"status" : "duplicate" , "jira_response" : jira_response_delete }
123
123
# else:
124
- jira_url = self .settings .jira_issue_url % jira_key_in_response
124
+ jira_url = f" { self .settings .jira_base_url } browse/ { jira_key_in_response } "
125
125
update = self .bugzilla_client .build_update (see_also_add = jira_url )
126
126
bugzilla_response = self .bugzilla_client .update_bugs ([bug_obj .id ], update )
127
127
128
- bugzilla_url = self .settings .bugzilla_bug_url % bug_obj .id
128
+ bugzilla_url = f" { self .settings .bugzilla_base_url } /show_bug.cgi?id= { bug_obj .id } "
129
129
jira_response = self .jira_client .create_or_update_issue_remote_links (
130
130
issue_key = jira_key_in_response ,
131
131
link_url = bugzilla_url ,
You can’t perform that action at this time.
0 commit comments