Ado-wrapper

Latest version: v1.41.0

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

Scan your dependencies

Page 1 of 8

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.

---

1.37.0

Added

- `PullRequest`s can now be (automatically) paginated, meaning you can fetch more than 100 (or 1000) results using `.get_all()`.
- `Project`s `get_pipeline_settings()` function now returns the retention policy settings marked at the top as well.
- Added `BuildTimeline.get_link()`.
- `BuildTimeline`s now also store their `build_id`

Changed

- Fixed `PullRequest.link()`, `PullRequestComment.link()` and `Repo.link()`
- Reworked how `Repo.get_all_pull_requests()` works and it's underlying function.
- Used aliases for a lot of `Repo`s functions, making it DRY-er and removing code duplication.
- Removed `get_content_static()`, it was bloated code and should never have been included.
- `Commit`s __str__ method has been removed and replaced by the auto generated one from dataclasses

---

1.36.0

Added

- StateManager.add_resource_to_state() now only takes the resource, rather than the id, type, etc, and extracts these itself now.
- `BuildArtifact`s now have a `build_id` attribute.
- `Commit`s now have the `repo_id` attribute.
- `Artifact`s, `AuditLog`s, `Commit`s, `PersonalAccessToken`s, `PullRequestComment`s, `ReleaseDefinition`s & `Release`s now have proper .`link` methods.

Changed

- Fixed a bug with `PullRequest`s `creation_date` and `comment_type` attributes being mixed up when using `from_request_payload`

---

Page 1 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.