Skip to content

Commit

Permalink
Stop skipping check run review in dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshinishio committed Dec 14, 2024
1 parent ba923f2 commit 7a4af9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/check_run_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from config import (
EMAIL_LINK,
GITHUB_APP_USER_NAME,
IS_PRD,
STRIPE_PRODUCT_ID_FREE,
SUPABASE_URL,
SUPABASE_SERVICE_ROLE_KEY,
Expand Down Expand Up @@ -112,7 +113,7 @@ def handle_check_run(payload: CheckRunCompletedPayload) -> None:

# Return here if product_id is not found or is in free tier
product_id: str | None = get_stripe_product_id(customer_id=stripe_customer_id)
if product_id is None or product_id == STRIPE_PRODUCT_ID_FREE:
if product_id is None or product_id == STRIPE_PRODUCT_ID_FREE and IS_PRD:
msg = f"Skipping because product_id is not found or is in free tier. product_id: '{product_id}'"
print(colorize(text=msg, color="yellow"))
return
Expand Down

0 comments on commit 7a4af9b

Please sign in to comment.