Skip to content

Commit

Permalink
[Issue helper] Skip issue created by owners (#23165)
Browse files Browse the repository at this point in the history
* initial

* rename yml

* git push function

* only collect issues with label 'Mgmt'

* handle exception

* date format

* update log print

* update bot policy

* skip self-create issue

* add ziwei and zhenbiao

* Update python.py

* skip self author

* skip self author

* skip self author

* Update python.py

* Update python.py

Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
  • Loading branch information
3 people authored Feb 22, 2022
1 parent d09051d commit 16bbcef
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion scripts/issue_helper/python.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 16bbcef

Please sign in to comment.