#NEWLINE# def get_pulls_list( project , auth = False , **params ) : #NEWLINE# #INDENT# 'get pull request list' #NEWLINE# params . setdefault ( 'state' , 'closed' ) #NEWLINE# url = 'https://api.github.com/repos/{project}/pulls' . format ( project = project ) #NEWLINE# if auth : #NEWLINE# #INDENT# headers = make_auth_header ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# headers = None #NEWLINE# #UNINDENT# pages = get_paged_request ( url , headers = headers , ** params ) #NEWLINE# return pages