#NEWLINE# def create_pull_request( self , repo , title , body , base_branch , new_branch ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# pr = repo . create_pull ( title = title , body = body , base = self , head = new_branch ) #NEWLINE# return self . bundle . get_pull_request_class ( ) ( state = pr . state , title = pr . title , url = pr . html_url , created_at = pr . created_at , number = pr . number , issue = False ) #NEWLINE# #UNINDENT# except GithubException : #NEWLINE# #INDENT# msg = 'Unable to create pull request on {repo}' . format ( repo = repo ) #NEWLINE# logger . error ( msg , exc_info = True ) #NEWLINE# raise NoPermissionError ( msg )