Lines Matching +full:github +full:- +full:token
8 # http://www.apache.org/licenses/LICENSE-2.0
37 GH_ISSUE_CREATION_URL = 'https://api.github.com/repos/grpc/grpc/issues'
38 GH_ISSUE_SEARCH_URL = 'https://api.github.com/search/issues'
44 assert TOKEN
45 request.add_header('Authorization', 'token {}'.format(TOKEN))
47 request.add_header('Content-type', 'application/json')
87 body = '- Test: {}\n- Poll Strategy: {}\n- URL: {}'.format(
108 'Asignees? (comma-separated, leave blank for unassigned): ')
121 print("\t- Test: {}, Polling: {}, Timestamp: {}, url: {}".format(
145 query_job = big_query_utils.sync_query_job(bq, 'grpc-testing', query)
163 return datetime.datetime.strptime(date_str, "%Y-%m-%d").date()
168 to establish the set of pre-existing flakes, which extends over
174 |--------------------|---------------|
189 a_week_ago = today - datetime.timedelta(days=7)
191 '--calibration_days',
194 help='How many days to consider for pre-existing flakes.')
196 '--reporting_days',
201 '--count_only',
207 '--create_issues',
213 '--always_create_issues',
220 '--token',
223 help='GitHub token to use its API with a higher rate limit')
225 '--format',
231 '--loglevel',
241 datetime.date.today() - datetime.timedelta(days=args.calibration_days) -
261 global TOKEN
264 if args.create_issues and not args.token:
266 'Missing --token argument, needed to create GitHub issues')
267 TOKEN = args.token
304 raise ValueError('Invalid argument for --format: {}'.format(