Ado-wrapper

Latest version: v1.43.0

Safety actively analyzes 720904 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 8

1.43.0

Added

- Added `Artifact.get_all_consume_by_build()`, which rather than getting the produced artifacts, gets the ones consumed.
- Added branch name to `Build`s

Changed

- Fixed a bug with newer python versions not working because of `WorkItem`s .link()

---

1.42.0

Added

- `WorkItem`, and it's corrosponding methods have been implemented (roughly)

Changed

- Pull requests now have their previous_commit_id added back.
- When fetching variable contents, the commit message has been improved

---

1.41.0

Added

- `Commit.get_all_by_repo()` now takes a start and end datetime, to only get commits in a certain range.
- `PullRequest.get_all_by_repo_id()` also takes a range of datetimes to filter by (API side)

Changed

- `StateManager`'s `load_all_resources_with_prefix_into_state` now has a arg to print it's finds (or not), defaults to True.
- `Build.delete_all_leases()`'s response renamed from `leases_response` to `delete_lease_request`

---

1.40.0

Added

- `Build.get_all()` is now paginated, allowing the return of more than 5000 results.
- `Commit`s now have a method, `get_changed_content` which returns the files changes by a commit (expensive!)
- `PullRequest`s have a similar method, which returns the changes, which can be ChangeFile.to_string(changed_files) to view as logs.
- `Team.get_my_teams()`, returning all the teams the authenticated token's owner is in.

Changed

- Tests for `Environment`s, which require about 1 second to exist through the API, giving them the delay allowed the tests to pass properly.
- Remove the internal `_get_all` & `_get_by_id` methods, `_get_all` will be replaced with `_get_by_url` with `fetch_multiple=True`.
- Removed the utils `to_iso()` which handled some edge cases, no longer being used.
- Fixed commit.get_all_by_repo improperly passing in branch name as limit.

---

1.39.0

Added

- Large amounts of RepoUserPerms have changed, this was in part to streamline code, but also make batched processes actually batched, rather than multiple requests. It should now be much quicker, and work more reliably.
- Added `UserRepoPerms.get_by_user_email()`, which gets the users perms by email for a specific repo (does the conversion for you).
- You can now fetch 5000 (rather than 1000) builds in one go, although pagination isn't currently supported.
- `Build.get_all()` now takes a start_date and end_date param to (optionally) filter builds.
- `AdoUser.get_all()` is now paginated, allowing for more than the default 500 users it wanted to fetch.

Changed

- The `LoggingSession` entries now have the method padded for easier url debugging.
- The `LoggingSession` entries now include the time the request took in milliseconds, for further debugging.
- Now use the latest api version for most requests, many were on 6.0 or even 5.0.

---

1.38.0

Added

- `Commit.get_all_by_repo` is now paginated, going from only 100 results to now unlimited.
- All session requests made will now be logged per entry. This allows for better debugging and call de-duplication. This can be enabled by setting `latest_log_count` to either a number more than 0, or -1 to store infinite logs.
- Variable group mappings are now a mapping of string -> (string | Secret), a new type which can mark things as secrets (import from root).

Changed

- Fixed a small issue with `Commit.get_all_by_repo()`, which had a trailing `&`.
- Fixed an issue with the paginator always fetching one more page than it needed.
- Once again fixed the `PullRequest.link()` method, which improperly returned a daylight savings related bug. This is accounted for now.
- System messages for `PullRequestComment`s now also include resolving merge conflicts.
- Optimised a call in startup which means one less API call is made on initialisation.

---

Page 1 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.