コード例 #1
0
 def get_pr_list(self,
                 status: PRStatus = PRStatus.open,
                 assignee=None,
                 author=None) -> List[PullRequest]:
     return PagurePullRequest.get_list(project=self,
                                       status=status,
                                       assignee=assignee,
                                       author=author)
コード例 #2
0
 def create_pr(
     self,
     title: str,
     body: str,
     target_branch: str,
     source_branch: str,
     fork_username: str = None,
 ) -> PullRequest:
     return PagurePullRequest.create(
         project=self,
         title=title,
         body=body,
         target_branch=target_branch,
         source_branch=source_branch,
     )
コード例 #3
0
 def get_pr(self, pr_id: int) -> PullRequest:
     return PagurePullRequest.get(project=self, id=pr_id)