Added finding projects by id and name using an indexer.

This commit is contained in:
2025-11-03 01:55:43 +01:00
parent 6bc913d43e
commit f43564d019
3 changed files with 31 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env python3
from devops import Organization, Project, Repository, Item, DEVOPS_SCOPE
from azure.identity import DefaultAzureCredential
from json import dumps
import tests
from devops import Organization
org = Organization("https://dev.azure.com/mcovsandbox")
# print(org.projects["bafe0cf1-6c97-4088-864a-ea6dc02b2727"].repositories["feac266f-84d2-41bc-839b-736925a85eaa"].items["/generate-pat.py"])
print(org["ADO Sandbox"])