File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -1154,6 +1154,7 @@ def get_branches(
1154
1154
limit = None ,
1155
1155
details = True ,
1156
1156
order_by = "MODIFICATION" ,
1157
+ boost_matches = False ,
1157
1158
):
1158
1159
"""
1159
1160
Retrieve the branches matching the supplied filterText param.
@@ -1167,6 +1168,7 @@ def get_branches(
1167
1168
fixed system limits. Default by built-in method: None
1168
1169
:param details: whether to retrieve plugin-provided metadata about each branch
1169
1170
:param order_by: OPTIONAL: ordering of refs either ALPHABETICAL (by name) or MODIFICATION (last updated)
1171
+ :param boost_matches: Controls whether exact and prefix matches will be boosted to the top
1170
1172
:return:
1171
1173
"""
1172
1174
url = self ._url_repo_branches (project_key , repository_slug )
@@ -1182,6 +1184,7 @@ def get_branches(
1182
1184
if order_by :
1183
1185
params ["orderBy" ] = order_by
1184
1186
params ["details" ] = details
1187
+ params ["boostMatches" ] = boost_matches
1185
1188
return self ._get_paged (url , params = params )
1186
1189
1187
1190
def _url_repo_default_branche (self , project_key , repository_slug ):
You can’t perform that action at this time.
0 commit comments