diff --git a/scripts/issue_helper/python.py b/scripts/issue_helper/python.py index a32a9dca25db..4f0a526d749b 100644 --- a/scripts/issue_helper/python.py +++ b/scripts/issue_helper/python.py @@ -1,9 +1,22 @@ +from typing import List + +from github.Issue import Issue + from common import Common _PYTHON_OWNER = {'msyyc', 'BigCat20196', 'Wzb123456789', 'kazrael2119'} _PYTHON_REPO = 'Azure/azure-sdk-for-python' _FILE_OUT_NAME_PYTHON = 'sdk_issue_python.md' +class Python(Common): + + def collect_open_issues(self) -> List[Issue]: + open_issues = super().collect_open_issues() + # Skip issue created by owners + filtered_issues = [i for i in open_issues if i.user.login not in self.language_owner] + return filtered_issues + + def python_process() -> None: - instance = Common(_PYTHON_OWNER, _PYTHON_REPO, _FILE_OUT_NAME_PYTHON) + instance = Python(_PYTHON_OWNER, _PYTHON_REPO, _FILE_OUT_NAME_PYTHON) instance.run()