@@ -476,6 +476,13 @@ def get_comments(
476476 List of issue comments.
477477 """
478478 raise NotImplementedError ()
479+
480+ def who_can_close () -> set [str ]:
481+ """
482+ Returns:
483+ Set of usernames who can close the issue.
484+ """
485+ raise NotImplementedError ()
479486
480487 def can_close (self , username : str ) -> bool :
481488 """
@@ -888,6 +895,34 @@ def close(self) -> "PullRequest":
888895 Pull request itself.
889896 """
890897 raise NotImplementedError ()
898+
899+ def who_can_close () -> set [str ]:
900+ """
901+ Returns:
902+ Set of usernames who can close the pull request.
903+ """
904+ raise NotImplementedError ()
905+
906+ def who_can_merge () -> set [str ]:
907+ """
908+ Returns:
909+ Set of usernames who can merge the pull request.
910+ """
911+ raise NotImplementedError ()
912+
913+ def can_close (self , username : str ) -> bool :
914+ """
915+ Returns:
916+ `True` if user can close the pull request, `False` otherwise.
917+ """
918+ raise NotImplementedError ()
919+
920+ def can_merge (self , username : str ) -> bool :
921+ """
922+ Returns:
923+ `True` if user can merge the pull request, `False` otherwise.
924+ """
925+ raise NotImplementedError
891926
892927 def merge (self ) -> "PullRequest" :
893928 """
@@ -1535,6 +1570,16 @@ def who_can_close_issue(self) -> set[str]:
15351570 Names of all users who have permission to modify an issue.
15361571 """
15371572 raise NotImplementedError ()
1573+
1574+ def can_close_issue (username : str ) -> bool :
1575+ """
1576+ Args:
1577+ username: Login of the user.
1578+
1579+ Returns:
1580+ `True` if user can close the issue, `False` otherwise.
1581+ """
1582+ raise NotImplementedError ()
15381583
15391584 def who_can_merge_pr (self ) -> set [str ]:
15401585 """
0 commit comments