third_party/blink/tools/blinkpy/w3c/wpt_github.py
def merge_pr(self, pr_number):
        """Merges a PR.

        If merge cannot be performed, MergeError is raised. GitHubError is
        raised when other unknown errors happen.

        API doc: https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button
        """
        path = '/repos/%s/%s/pulls/%d/merge' % (WPT_GH_ORG, WPT_GH_REPO_NAME,
                                                pr_number)
        body = {
            'merge_method': 'rebase',
        }

        try:
            response = self.request(path, method='PUT', body=body)
        except HTTPError as e:
            if e.code == 405:
                raise MergeError(pr_number)
            else:
                raise

        if response.status_code != 200:
            raise GitHubError(200, response.status_code,
                              'merge PR %d' % pr_number)
Merges a PR.

        If merge cannot be performed, MergeError is raised. GitHubError is
        raised when other unknown errors happen.

        API doc: https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button
        
Merges a PR.
If merge cannot be performed, MergeError is raised. GitHubError is
raised when other unknown errors happen.


Merges a PR . If merge cannot be performed MergeError is raised . GitHubError is raised when other unknown errors happen .
def merge_pr(self, pr_number):
        path = '/repos/%s/%s/pulls/%d/merge' % (WPT_GH_ORG, WPT_GH_REPO_NAME,
                                                pr_number)
        body = {
            'merge_method': 'rebase',
        }
        try:
            response = self.request(path, method='PUT', body=body)
        except HTTPError as e:
            if e.code == 405:
                raise MergeError(pr_number)
            else:
                raise
        if response.status_code != 200:
            raise GitHubError(200, response.status_code,
                              'merge PR %d' % pr_number)
def merge_pr ( self , pr_number ) : path = '/repos/%s/%s/pulls/%d/merge' % ( WPT_GH_ORG , WPT_GH_REPO_NAME , pr_number ) body = { 'merge_method' : 'rebase' , } try : response = self . request ( path , method = 'PUT' , body = body ) except HTTPError as e : if e . code == 405 : raise MergeError ( pr_number ) else : raise if response . status_code != 200 : raise GitHubError ( 200 , response . status_code , 'merge PR %d' % pr_number )
Merges a PR.
Merges a PR .
"""Merges a PR.

        If merge cannot be performed, MergeError is raised. GitHubError is
        raised when other unknown errors happen.

        API doc: https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button
        """
self
pr_number