Skip to content

Commit

Permalink
another change
Browse files Browse the repository at this point in the history
  • Loading branch information
sumansaurabh committed Feb 22, 2024
1 parent e0001fc commit 7160bc3
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/azure_devops.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import asyncio
import json
import traceback

from pprint import pprint

# base_url = f"https://production-gateway.snorkell.ai"
base_url = "https://f0a8-2401-4900-1f26-31a3-b5b1-65c0-2624-a5e9.ngrok-free.app"
Expand All @@ -21,13 +21,13 @@ async def notify_error(message):
"repo_details": other_vars,
}
print("Sending error notification to snorkell ", data)
url: str = f"{base_url}/api/app/github/report/errors"
response = requests.post(url, headers=headers, json=data, timeout=600)
if response.status_code == 200:
message = response.json()["message"]
print(message)
else:
print(response.status_code)
# url: str = f"{base_url}/api/app/github/report/errors"
# response = requests.post(url, headers=headers, json=data, timeout=600)
# if response.status_code == 200:
# message = response.json()["message"]
# print(message)
# else:
# print(response.status_code)



Expand Down Expand Up @@ -128,6 +128,7 @@ async def main():
"commit_message": os.getenv("COMMIT_MSG"), # Replace with your commit message
}

pprint(data)
try:
is_valid_request = await initiate_documentation_generation(headers, data)
if not is_valid_request:
Expand Down

0 comments on commit 7160bc3

Please sign in to comment.