Lines Matching +full:github +full:- +full:token
8 # http://www.apache.org/licenses/LICENSE-2.0
17 You'll need a github API token to avoid being rate-limited. See
18 https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/
23 GitHub reports a PR's updated timestamp for any event that modifies the PR (e.g.
27 to a manual re-run of tests.
43 PRS = 'https://api.github.com/repos/grpc/grpc/pulls?state=open&per_page=100'
44 COMMITS = 'https://api.github.com/repos/grpc/grpc/pulls/{pr_number}/commits'
49 if TOKEN:
50 request.add_header('Authorization', 'token {}'.format(TOKEN))
78 str(int((test_time - base_time).total_seconds())),
86 return datetime.strptime(datetime_str, '%Y-%m-%dT%H:%M:%SZ')
90 return str((dt - datetime(1970, 1, 1)).total_seconds())
109 parse_timestamp(commits[-1]['commit']['author']['date'])
122 elif system == 'jenkins': string_in_target_url = 'grpc-testing'
152 '--format',
158 '--system',
164 '--token',
167 help='GitHub token to use its API with a higher rate limit')
173 global TOKEN
176 TOKEN = args.token
180 # PR with a single commit -> use the PRs creation time.
181 # else -> use the latest commit's date.
189 diff = last_status['latest_datetime'] - base_timestamp