def METHOD_NAME(self, milestone=None, labels=None):
    if milestone is None:
        m = GithubObject.NotSet
    else:
        m = self.get_milestone_by_name(milestone)
        if not m:
            print(f'Unknown milestone {milestone}')
            return None
    if labels is None:
        labels = []
    issues = self._repository.get_issues(milestone=m, state='all', labels=labels)
    return [i.as_pull_request() for i in issues if i.pull_request is not None]