Skip to content

[Snorkell.ai] Please review the generated documentation for commit - c1d56d2 #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions src/azure_devops.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
# base_url = "https://f0a8-2401-4900-1f26-31a3-b5b1-65c0-2624-a5e9.ngrok-free.app"

async def notify_error(message):
""" Notify about an error to the GithubClient.

Args:
message (str): The error message to be notified.

Returns:
None
"""

message = f"GithubClient alert:\n {message}"
print(message)
other_vars = {
Expand Down Expand Up @@ -53,6 +62,20 @@ async def initiate_documentation_generation(


async def check_documentation_generation_status(headers, data):
""" Check the status of documentation generation.

Args:
headers (dict): The headers to be included in the request.
data (dict): The data to be sent in the request.

Returns:
None

Raises:
Exception: If the request to the API fails or times out.
Exception: If the documentation generation fails.
"""

url = f"{base_url}/api/app/azDevops/status/documentation"
count = 0
while count < 360:
Expand Down