Skip to content

Commit

Permalink
Merge pull request #160 from gitautoai/wes
Browse files Browse the repository at this point in the history
Improve pull_request_completed() text copy 2
  • Loading branch information
hiroshinishio authored Jul 3, 2024
2 parents 4985cd6 + 7acb90e commit 5fc83d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cloudformation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Resources:
Properties:
Name: SchedulerEventRule
Description: "Schedule Lambda function to run every weekday at 0 AM UTC"
ScheduleExpression: cron(35 7 ? * MON-FRI *) # min hour day month day-of-week year
ScheduleExpression: cron(45 7 ? * MON-FRI *) # min hour day month day-of-week year
State: ENABLED
Targets:
- Arn: !Ref LambdaFunctionArn
Expand Down
4 changes: 1 addition & 3 deletions utils/text_copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ def request_limit_reached(

def pull_request_completed(issuer_name: str, sender_name: str, pr_url: str) -> str:
"""Comment text to issue when pull request is completed"""
if sender_name == issuer_name:
user_part = f"@{issuer_name}"
elif sender_name == PRODUCT_ID:
if sender_name == issuer_name or PRODUCT_ID in sender_name:
user_part = f"@{issuer_name}"
else:
user_part = f"@{issuer_name} and @{sender_name}"
Expand Down

0 comments on commit 5fc83d5

Please sign in to comment.