Spaces:
Sleeping
Sleeping
Update langgraph_pr_review_bot.py
Browse files- langgraph_pr_review_bot.py +0 -19
langgraph_pr_review_bot.py
CHANGED
|
@@ -92,25 +92,6 @@ class PRReviewState(BaseModel):
|
|
| 92 |
final_review_url: Optional[str]
|
| 93 |
last_error: Optional[str] # For any general error messages
|
| 94 |
|
| 95 |
-
'''
|
| 96 |
-
from kaggle_secrets import UserSecretsClient
|
| 97 |
-
user_secrets = UserSecretsClient()
|
| 98 |
-
git_hub_token = user_secrets.get_secret("GITHUB_token_ID")
|
| 99 |
-
google_api_key = user_secrets.get_secret("GOOGLE_API_KEY")
|
| 100 |
-
'''
|
| 101 |
-
|
| 102 |
-
google_api_key = os.getenv("GOOGLE_API_KEY")
|
| 103 |
-
if not google_api_key:
|
| 104 |
-
print("Google API key not found in environment variables.")
|
| 105 |
-
print(f"Using Google API key: {google_api_key[:4]}... (truncated for security)")
|
| 106 |
-
|
| 107 |
-
git_hub_token = os.getenv("GITHUB_token_ID")
|
| 108 |
-
if not git_hub_token:
|
| 109 |
-
print("git_hub_token not found in environment variables.")
|
| 110 |
-
print(f"git_hub_token : {git_hub_token[:4]}... (truncated for security)")
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
|
| 115 |
# For local testing, you might need to load dotenv if your environment variables
|
| 116 |
# are managed via a .env file. In a deployed environment, they would likely be
|
|
|
|
| 92 |
final_review_url: Optional[str]
|
| 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
|