Skip to content

Commit 015ff10

Browse files
[FIX] github_connector_odoo: Update the deprecated function match_tree to match_tree_files
DeprecationWarning: PathSpec.match_tree() is deprecated. Use .match_tree_files() instead.
1 parent f90e0ee commit 015ff10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github_connector_odoo/models/github_analysis_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def _get_matches(self, path):
2020
if self.has_odoo_addons:
2121
spec = self._set_spec(["*"])
2222
file_paths = []
23-
for path_item in spec.match_tree(path):
23+
for path_item in spec.match_tree_files(path):
2424
file_paths.append(f"{path}/{path_item}")
2525
spec = self._set_spec(self.paths.splitlines())
2626
return spec.match_files(file_paths)

0 commit comments

Comments
 (0)