nikhmr1235 commited on
Commit
c41e45c
·
verified ·
1 Parent(s): dd7ef07

Update langgraph_pr_review_bot.py

Browse files
Files changed (1) hide show
  1. langgraph_pr_review_bot.py +12 -0
langgraph_pr_review_bot.py CHANGED
@@ -93,6 +93,18 @@ class PRReviewState(BaseModel):
93
  last_error: Optional[str] # For any general error messages
94
 
95
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  # For local testing, you might need to load dotenv if your environment variables
97
  # are managed via a .env file. In a deployed environment, they would likely be
98
  # set directly.
 
93
  last_error: Optional[str] # For any general error messages
94
 
95
 
96
+
97
+ google_api_key = os.getenv("GOOGLE_API_KEY")
98
+ if not google_api_key:
99
+ print("Google API key not found in environment variables.")
100
+ print(f"Using Google API key: {google_api_key[:4]}... (truncated for security)")
101
+
102
+ git_hub_token = os.getenv("GITHUB_token_ID")
103
+ if not git_hub_token:
104
+ print("git_hub_token not found in environment variables.")
105
+ print(f"git_hub_token : {git_hub_token[:4]}... (truncated for security)")
106
+
107
+
108
  # For local testing, you might need to load dotenv if your environment variables
109
  # are managed via a .env file. In a deployed environment, they would likely be
110
  # set directly.