Skip to content

Commit

Permalink
revert: testing tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
SD-13 committed Dec 4, 2024
1 parent c18db01 commit 19f2a10
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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)

Expand Down

0 comments on commit 19f2a10

Please sign in to comment.