#NEWLINE# def on_select_action( self , idx ) : #NEWLINE# #INDENT# if ( idx == ( - 1 ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( idx == 0 ) : #NEWLINE# #INDENT# self . fetch_and_checkout_pr ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( idx == 1 ) : #NEWLINE# #INDENT# self . view . window ( ) . show_input_panel ( 'Enter branch name for PR {}:' . format ( self . pr [ 'number' ] ) , 'pull-request-{}' . format ( self . pr [ 'number' ] ) , self . fetch_and_checkout_pr , None , None ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( idx == 2 ) : #NEWLINE# #INDENT# self . view . window ( ) . show_input_panel ( 'Enter branch name for PR {}:' . format ( self . pr [ 'number' ] ) , 'pull-request-{}' . format ( self . pr [ 'number' ] ) , self . create_branch_for_pr , None , None ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( idx == 3 ) : #NEWLINE# #INDENT# self . view_diff_for_pr ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( idx == 4 ) : #NEWLINE# #INDENT# self . open_pr_in_browser ( )