Lines Matching +full:github +full:- +full:token
4 # SPDX-License-Identifier: Apache-2.0
6 """Query the Top-Ten Bug Bashers
8 This script will query the top-ten Bug Bashers in a specified date window.
11 ./scripts/bug-bash.py -t ~/.ghtoken -b 2021-07-26 -e 2021-08-07
12 GITHUB_TOKEN="..." ./scripts/bug-bash.py -b 2021-07-26 -e 2021-08-07
21 from github import Github
26 parser.add_argument('-a', '--all', dest='all',
28 parser.add_argument('-t', '--token', dest='tokenfile',
29 …help='File containing GitHub token (alternatively, use GITHUB_TOKEN env variable)', metavar='FILE')
30 parser.add_argument('-s', '--start', dest='start', help='start date (YYYY-mm-dd)',
32 parser.add_argument('-e', '--end', dest='end', help='end date (YYYY-mm-dd)',
43 token = file.read()
44 token = token.strip()
48 token = os.environ['GITHUB_TOKEN']
50 setattr(args, 'token', token)
57 """Create a BugBashTally object with the provided Github object,
60 self._repo = gh.get_repo('zephyrproject-rtos/zephyr')
98 # do not sort users by login - hopefully fair-ish
108 """Return GitHub pull requests that squash bugs in the provided
118 """Return GitHub issues representing bugs in the provided date
129 # or 'end date' :-/
138 prid = int(ipr.html_url.split('/')[-1])
150 # https://gist.github.com/monkut/e60eea811ef085a6540f
155 return datetime.strptime(arg_date_str, "%Y-%m-%d")
157 msg = "Given Date ({0}) not valid! Expected format, YYYY-MM-DD!".format(arg_date_str)
162 """Print the top-ten bug bashers"""
164 # print tab-separated value, to allow for ./script ... > foo.csv
170 bbt = BugBashTally(Github(args.token), args.start, args.end)