third_party/blink/tools/blinkpy/w3c/wpt_github.py
def create_pr(self, remote_branch_name, desc_title, body):
        """Creates a PR on GitHub.

        API doc: https://developer.github.com/v3/pulls/#create-a-pull-request

        Returns:
            The issue number of the created PR.
        """
        assert remote_branch_name
        assert desc_title
        assert body

        path = '/repos/%s/%s/pulls' % (WPT_GH_ORG, WPT_GH_REPO_NAME)
        body = {
            'title': desc_title,
            'body': body,
            'head': remote_branch_name,
            'base': 'master',
        }
        try:
            response = self.request(path, method='POST', body=body)
        except HTTPError as e:
            _log.error(e.reason)
            if e.code == 422:
                _log.error('Please check if branch already exists; If so, '
                           'please remove the PR description and '
                           'delete the branch')
            raise GitHubError(201, e.code,
                              'create PR branch %s' % remote_branch_name)

        if response.status_code != 201:
            raise GitHubError(201, response.status_code, 'create PR')

        return response.data['number']
Creates a PR on GitHub.

        API doc: https://developer.github.com/v3/pulls/#create-a-pull-request

        Returns:
            The issue number of the created PR.
        
Creates a PR on GitHub.
Creates a PR on GitHub .
def create_pr(self, remote_branch_name, desc_title, body):
        assert remote_branch_name
        assert desc_title
        assert body
        path = '/repos/%s/%s/pulls' % (WPT_GH_ORG, WPT_GH_REPO_NAME)
        body = {
            'title': desc_title,
            'body': body,
            'head': remote_branch_name,
            'base': 'master',
        }
        try:
            response = self.request(path, method='POST', body=body)
        except HTTPError as e:
            _log.error(e.reason)
            if e.code == 422:
                _log.error('Please check if branch already exists; If so, '
                           'please remove the PR description and '
                           'delete the branch')
            raise GitHubError(201, e.code,
                              'create PR branch %s' % remote_branch_name)
        if response.status_code != 201:
            raise GitHubError(201, response.status_code, 'create PR')
        return response.data['number']
def create_pr ( self , remote_branch_name , desc_title , body ) : assert remote_branch_name assert desc_title assert body path = '/repos/%s/%s/pulls' % ( WPT_GH_ORG , WPT_GH_REPO_NAME ) body = { 'title' : desc_title , 'body' : body , 'head' : remote_branch_name , 'base' : 'master' , } try : response = self . request ( path , method = 'POST' , body = body ) except HTTPError as e : _log . error ( e . reason ) if e . code == 422 : _log . error ( 'Please check if branch already exists; If so, ' 'please remove the PR description and ' 'delete the branch' ) raise GitHubError ( 201 , e . code , 'create PR branch %s' % remote_branch_name ) if response . status_code != 201 : raise GitHubError ( 201 , response . status_code , 'create PR' ) return response . data [ 'number' ]
Creates a PR on GitHub.
Creates a PR on GitHub .
"""Creates a PR on GitHub.

        API doc: https://developer.github.com/v3/pulls/#create-a-pull-request

        Returns:
            The issue number of the created PR.
        """
The issue number of the created PR.
The issue number of the created PR .
self
remote_branch_name
desc_title
body