Modified harvester script to look for Python files in the test repository.
All checks were successful
/ unit-tests (push) Successful in 10s
All checks were successful
/ unit-tests (push) Successful in 10s
This commit is contained in:
15
harvester.py
15
harvester.py
@@ -3,14 +3,9 @@
|
|||||||
from sk.devops import Organization
|
from sk.devops import Organization
|
||||||
from sk.azure import get_token
|
from sk.azure import get_token
|
||||||
|
|
||||||
token = get_token(
|
org = Organization("https://dev.azure.com/mcovsandbox", token=get_token())
|
||||||
tenant_id="a7740229-47b6-45de-ad22-83721462b1bf",
|
item = org["ADO Sandbox"]["ado-auth-lab"]["/"]
|
||||||
client_id="840671c4-5dc4-40e5-aab9-7c3a07bbd652",
|
|
||||||
pem_path="./slawek-mba.pem"
|
|
||||||
)
|
|
||||||
|
|
||||||
org = Organization("https://dev.azure.com/mcovsandbox", token=token)
|
# Let's list all python files in this folder
|
||||||
|
for child in item.get_child_items(pattern="*.py", recurse=True):
|
||||||
# print(org.projects["bafe0cf1-6c97-4088-864a-ea6dc02b2727"].repositories["feac266f-84d2-41bc-839b-736925a85eaa"].items["/generate-pat.py"])
|
print(f'- {child.path}')
|
||||||
print(org["ADO Sandbox"]["ado-auth-lab"]["/container"].url) # type: ignore[attr-defined]
|
|
||||||
print(org["ADO Sandbox"]["ado-auth-lab"]["/generate-pat.py"].url) # type: ignore[attr-defined]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user