third_party/blink/tools/blinkpy/w3c/wpt_github.py
def recent_failing_chromium_exports(self):
        """Fetches open PRs with an export label, failing status, and updated
        within the last month.

        API doc: https://developer.github.com/v3/search/#search-issues-and-pull-requests

        Returns:
            A list of PullRequest namedtuples.
        """
        one_month_ago = datetime.date.today() - datetime.timedelta(days=31)
        path = (
            '/search/issues'
            '?q=repo:{}/{}%20type:pr+is:open%20label:{}%20status:failure%20updated:>{}'
            '&sort=updated'
            '&page=1'
            '&per_page={}').format(WPT_GH_ORG,
                                   WPT_GH_REPO_NAME, EXPORT_PR_LABEL,
                                   one_month_ago.isoformat(), MAX_PER_PAGE)

        failing_prs = []
        while path is not None:
            response = self.request(path, method='GET')
            if response.status_code == 200:
                if response.data['incomplete_results']:
                    raise GitHubError('complete results', 'incomplete results',
                                      'fetch failing open chromium exports',
                                      path)

                prs = [
                    self.make_pr_from_item(item)
                    for item in response.data['items']
                ]
                failing_prs += prs
            else:
                raise GitHubError(200, response.status_code,
                                  'fetch failing open chromium exports', path)
            path = self.extract_link_next(response.getheader('Link'))

        _log.info('Fetched %d PRs from GitHub.', len(failing_prs))
        return failing_prs
Fetches open PRs with an export label, failing status, and updated
        within the last month.

        API doc: https://developer.github.com/v3/search/#search-issues-and-pull-requests

        Returns:
            A list of PullRequest namedtuples.
        
Fetches open PRs with an export label, failing status, and updated
within the last month.


Fetches open PRs with an export label failing status and updated within the last month .
def recent_failing_chromium_exports(self):
        one_month_ago = datetime.date.today() - datetime.timedelta(days=31)
        path = (
            '/search/issues'
            '?q=repo:{}/{}%20type:pr+is:open%20label:{}%20status:failure%20updated:>{}'
            '&sort=updated'
            '&page=1'
            '&per_page={}').format(WPT_GH_ORG,
                                   WPT_GH_REPO_NAME, EXPORT_PR_LABEL,
                                   one_month_ago.isoformat(), MAX_PER_PAGE)
        failing_prs = []
        while path is not None:
            response = self.request(path, method='GET')
            if response.status_code == 200:
                if response.data['incomplete_results']:
                    raise GitHubError('complete results', 'incomplete results',
                                      'fetch failing open chromium exports',
                                      path)
                prs = [
                    self.make_pr_from_item(item)
                    for item in response.data['items']
                ]
                failing_prs += prs
            else:
                raise GitHubError(200, response.status_code,
                                  'fetch failing open chromium exports', path)
            path = self.extract_link_next(response.getheader('Link'))
        _log.info('Fetched %d PRs from GitHub.', len(failing_prs))
        return failing_prs
def recent_failing_chromium_exports ( self ) : one_month_ago = datetime . date . today ( ) - datetime . timedelta ( days = 31 ) path = ( '/search/issues' '?q=repo:{}/{}%20type:pr+is:open%20label:{}%20status:failure%20updated:>{}' '&sort=updated' '&page=1' '&per_page={}' ) . format ( WPT_GH_ORG , WPT_GH_REPO_NAME , EXPORT_PR_LABEL , one_month_ago . isoformat ( ) , MAX_PER_PAGE ) failing_prs = [ ] while path is not None : response = self . request ( path , method = 'GET' ) if response . status_code == 200 : if response . data [ 'incomplete_results' ] : raise GitHubError ( 'complete results' , 'incomplete results' , 'fetch failing open chromium exports' , path ) prs = [ self . make_pr_from_item ( item ) for item in response . data [ 'items' ] ] failing_prs += prs else : raise GitHubError ( 200 , response . status_code , 'fetch failing open chromium exports' , path ) path = self . extract_link_next ( response . getheader ( 'Link' ) ) _log . info ( 'Fetched %d PRs from GitHub.' , len ( failing_prs ) ) return failing_prs
Fetches open PRs with an export label, failing status, and updated
within the last month.
Fetches open PRs with an export label failing status and updated within the last month .
"""Fetches open PRs with an export label, failing status, and updated
        within the last month.

        API doc: https://developer.github.com/v3/search/#search-issues-and-pull-requests

        Returns:
            A list of PullRequest namedtuples.
        """
A list of PullRequest namedtuples.
A list of PullRequest namedtuples .
self