third_party/blink/tools/blinkpy/w3c/wpt_github.py
def add_label(self, number, label):
        """Adds a label to a GitHub issue (or PR).

        API doc: https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue
        """
        path = '/repos/%s/%s/issues/%d/labels' % (WPT_GH_ORG, WPT_GH_REPO_NAME,
                                                  number)
        body = [label]
        response = self.request(path, method='POST', body=body)

        if response.status_code != 200:
            raise GitHubError(200, response.status_code,
                              'add label %s to issue %d' % (label, number))
Adds a label to a GitHub issue (or PR).

        API doc: https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue
        
Adds a label to a GitHub issue (or PR).
Adds a label to a GitHub issue ( or PR ) .
def add_label(self, number, label):
        path = '/repos/%s/%s/issues/%d/labels' % (WPT_GH_ORG, WPT_GH_REPO_NAME,
                                                  number)
        body = [label]
        response = self.request(path, method='POST', body=body)
        if response.status_code != 200:
            raise GitHubError(200, response.status_code,
                              'add label %s to issue %d' % (label, number))
def add_label ( self , number , label ) : path = '/repos/%s/%s/issues/%d/labels' % ( WPT_GH_ORG , WPT_GH_REPO_NAME , number ) body = [ label ] response = self . request ( path , method = 'POST' , body = body ) if response . status_code != 200 : raise GitHubError ( 200 , response . status_code , 'add label %s to issue %d' % ( label , number ) )
Adds a label to a GitHub issue (or PR).
Adds a label to a GitHub issue ( or PR ) .
"""Adds a label to a GitHub issue (or PR).

        API doc: https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue
        """
self
number
label