Skip to content

Commit b3a50a7

Browse files
author
Bryan Sieber
committed
Modify Jira-Labels to convert wb spaces to periods
1 parent 56d317d commit b3a50a7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/jbi/bugzilla.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,14 @@ def get_jira_labels(self):
118118
"""
119119
whiteboard labels are added as a convenience for users to search in jira;
120120
bugzilla is an expected label in Jira
121+
since jira-labels can't contain a " ", convert to "."
121122
"""
122-
return (
123-
["bugzilla"]
124-
+ self.get_whiteboard_as_list()
125-
+ self.get_whiteboard_with_brackets_as_list()
126-
)
123+
wb_list = [wb.replace(" ", ".") for wb in self.get_whiteboard_as_list()]
124+
wb_bracket_list = [
125+
wb.replace(" ", ".") for wb in self.get_whiteboard_with_brackets_as_list()
126+
]
127+
128+
return ["bugzilla"] + wb_list + wb_bracket_list
127129

128130
def get_potential_whiteboard_config_list(self):
129131
"""Get all possible whiteboard_tag configuration values"""

0 commit comments

Comments
 (0)