data/data_collection.py
def _get_approved_reviewers(self, pull_request_number: int) -> List[str]:
        """Retrieves the approved reviewers of a given pull request id.

        Args:
            pull_request_number: An integer of pull request id.
        Returns:
            A list of strs. Each str is an approved reviewer login username.
        """
        reviews = get_pull_request_reviews(
            self._repo_name, pull_request_number, self._auth)
        if not reviews:
            return []
        approved_reviewers = set()
        for review in reviews:
            if review['state'] == 'APPROVED':
                if review['user']:
                    approved_reviewers.add(review['user']['login'])
                else:
                    approved_reviewers.add("")
        return list(approved_reviewers)
Retrieves the approved reviewers of a given pull request id.

        Args:
            pull_request_number: An integer of pull request id.
        Returns:
            A list of strs. Each str is an approved reviewer login username.
        
Retrieves the approved reviewers of a given pull request id.
Retrieves the approved reviewers of a given pull request id .
def _get_approved_reviewers(self, pull_request_number: int) -> List[str]:
        reviews = get_pull_request_reviews(
            self._repo_name, pull_request_number, self._auth)
        if not reviews:
            return []
        approved_reviewers = set()
        for review in reviews:
            if review['state'] == 'APPROVED':
                if review['user']:
                    approved_reviewers.add(review['user']['login'])
                else:
                    approved_reviewers.add("")
        return list(approved_reviewers)
def _get_approved_reviewers ( self , pull_request_number : int ) -> List [ str ] : reviews = get_pull_request_reviews ( self . _repo_name , pull_request_number , self . _auth ) if not reviews : return [ ] approved_reviewers = set ( ) for review in reviews : if review [ 'state' ] == 'APPROVED' : if review [ 'user' ] : approved_reviewers . add ( review [ 'user' ] [ 'login' ] ) else : approved_reviewers . add ( "" ) return list ( approved_reviewers )
Retrieves the approved reviewers of a given pull request id.
Retrieves the approved reviewers of a given pull request id .
"""Retrieves the approved reviewers of a given pull request id.

        Args:
            pull_request_number: An integer of pull request id.
        Returns:
            A list of strs. Each str is an approved reviewer login username.
        """
A list of strs. Each str is an approved reviewer login username.
A list of strs . Each str is an approved reviewer login username .
self
pull_request_number
int
An integer of pull request id.
An integer of pull request id .