third_party/blink/tools/blinkpy/w3c/wpt_github.py
def update_pr(self, pr_number, desc_title=None, body=None, state=None):
        """Updates a PR on GitHub.

        API doc: https://developer.github.com/v3/pulls/#update-a-pull-request
        """
        path = '/repos/{}/{}/pulls/{}'.format(WPT_GH_ORG, WPT_GH_REPO_NAME,
                                              pr_number)
        payload = {}
        if desc_title:
            payload['title'] = desc_title
        if body:
            payload['body'] = body
        if state:
            payload['state'] = state
        response = self.request(path, method='PATCH', body=payload)

        if response.status_code != 200:
            raise GitHubError(200, response.status_code,
                              'update PR %d' % pr_number)
Updates a PR on GitHub.

        API doc: https://developer.github.com/v3/pulls/#update-a-pull-request
        
Updates a PR on GitHub.
Updates a PR on GitHub .
def update_pr(self, pr_number, desc_title=None, body=None, state=None):
        path = '/repos/{}/{}/pulls/{}'.format(WPT_GH_ORG, WPT_GH_REPO_NAME,
                                              pr_number)
        payload = {}
        if desc_title:
            payload['title'] = desc_title
        if body:
            payload['body'] = body
        if state:
            payload['state'] = state
        response = self.request(path, method='PATCH', body=payload)
        if response.status_code != 200:
            raise GitHubError(200, response.status_code,
                              'update PR %d' % pr_number)
def update_pr ( self , pr_number , desc_title = None , body = None , state = None ) : path = '/repos/{}/{}/pulls/{}' . format ( WPT_GH_ORG , WPT_GH_REPO_NAME , pr_number ) payload = { } if desc_title : payload [ 'title' ] = desc_title if body : payload [ 'body' ] = body if state : payload [ 'state' ] = state response = self . request ( path , method = 'PATCH' , body = payload ) if response . status_code != 200 : raise GitHubError ( 200 , response . status_code , 'update PR %d' % pr_number )
Updates a PR on GitHub.
Updates a PR on GitHub .
"""Updates a PR on GitHub.

        API doc: https://developer.github.com/v3/pulls/#update-a-pull-request
        """
self
pr_number
desc_title
body
state