Lines Matching +full:repo +full:- +full:token
3 # SPDX-License-Identifier: Apache-2.0
19 date_format = '%Y-%m-%d %H:%M:%S'
21 def parse_args() -> argparse.Namespace:
25 parser.add_argument('--pull-request', help='pull request number', type=int)
26 …parser.add_argument('--range', help='execute based on a date range, for example 2023-01-01..2023-0…
27 parser.add_argument('--repo', help='github repo', default='zephyrproject-rtos/zephyr')
28 parser.add_argument('--es-index', help='Elasticsearch index')
29 parser.add_argument('-y','--dry-run', action="store_true", help='dry run, do not upload data')
42 …print(f'#{pr.number}: {pr.title} - {pr.comments} Comments, reviews: {reviews.totalCount}, {len(pr.…
85 delta = pr.closed_at - created
89 dates = (created + timedelta(idx + 1) for idx in range((pr.closed_at - created).days))
115 prj['updated'] = pr.updated_at.strftime("%Y-%m-%d %H:%M:%S")
116 prj['created'] = pr.created_at.strftime("%Y-%m-%d %H:%M:%S")
117 prj['closed'] = pr.closed_at.strftime("%Y-%m-%d %H:%M:%S")
135 token = os.environ.get('GITHUB_TOKEN')
136 if not token:
137 sys.exit('Github token not set in environment, please set the '
140 gh = Github(token)
142 gh_repo = gh.get_repo(args.repo)
149 query = f'repo:{args.repo} merged:{args.range} is:pr is:closed sort:updated-desc base:main'