Skip to content

Commit 7e606a2

Browse files
add --comments args
1 parent 3c5290c commit 7e606a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def parse_args():
2323
parser.add_argument('-l', '--list', type=str, required=True, help='Path to the file containing the list of repositories. Repositories should be separated by a line break. Names should be in the format <organization or owner>/<name> ')
2424
parser.add_argument("--download_repos", type=str, help="path to downloaded repositories", default='./')
2525
parser.add_argument('-o', '--out', type=str, required=True, help='output filename')
26+
parser.add_argument("-C", "--comments", help="log comments for PR", action="store_true")
2627
parser.add_argument('-s', '--start', type=str, required=False, help='start time', default='2000/01/01-00:00:00')
2728
parser.add_argument('-f', '--finish', type=str, required=False, help='finish time', default='2400/01/01-00:00:00')
2829
parser.add_argument('-b', '--branch', type=str, required=False, help='branch to select commits, by default use "default" repository branch, use "all" to get all commits from all branches', default=None)
@@ -60,6 +61,7 @@ def main():
6061
csv_name = args.out
6162
path_drepo = args.download_repos
6263
fork_flag = args.forks_include
64+
log_comments = args.comments
6365

6466
try:
6567
client = git_logger.login(token=token)
@@ -74,7 +76,7 @@ def main():
7476
if args.commits:
7577
commits_parser.log_commits(client, working_repos, csv_name, start, finish, args.branch, fork_flag)
7678
if args.pull_requests:
77-
pull_requests_parser.log_pull_requests(client, working_repos, csv_name, token, start, finish, fork_flag)
79+
pull_requests_parser.log_pull_requests(client, working_repos, csv_name, token, start, finish, fork_flag, log_comments)
7880
if args.issues:
7981
issues_parser.log_issues(client, working_repos, csv_name, token, start, finish, fork_flag)
8082
if args.invites:

0 commit comments

Comments
 (0)