From 19f2a10de05738a4fac38502acaaf573fad71557 Mon Sep 17 00:00:00 2001 From: Sujay Date: Thu, 5 Dec 2024 02:11:29 +0530 Subject: [PATCH] revert: testing tweaks --- src/main.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main.py b/src/main.py index ddf6339..1b0bc56 100644 --- a/src/main.py +++ b/src/main.py @@ -94,7 +94,7 @@ def generate_message( with open(template_path, 'r', encoding='UTF-8') as file: message = file.read() - message = re.sub(r'\{\{ *username *\}\}', username, message) + message = re.sub(r'\{\{ *username *\}\}', '@' + username, message) message = re.sub(r'\{\{ *pr_list *\}\}', '\n'.join(pr_list_messages), message) return message @@ -110,9 +110,7 @@ def main(args: Optional[List[str]]=None) -> None: """ parsed_args = PARSER.parse_args(args=args) - # org_name, repo_name = parsed_args.repo.split('/') - org_name = "oppia" - repo_name = "oppia" + org_name, repo_name = parsed_args.repo.split('/') discussion_category = parsed_args.category max_wait_hours = parsed_args.max_wait_hours @@ -132,8 +130,6 @@ def main(args: Optional[List[str]]=None) -> None: github_services.get_prs_assigned_to_reviewers(org_name, repo_name, max_wait_hours) ) - org_name = 'SD-13' - repo_name = 'test-pending-review-notifier' github_services.delete_discussions( org_name, repo_name, discussion_category)