Ado-wrapper

Latest version: v1.43.0

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

Scan your dependencies

Page 4 of 8

1.25.0

Added

- `remove_ansi_codes`, a utils function to removr all ansi colour codes from a string, uses `ANSI_RE_PATTERN`.
- Project's now have `visibility` and `creation_status` when fetching by id or name.
- Improved StateManger.load_all_resources_with_prefix_into_state to include more resources, and work over all better
- Added the ability to allow a variable group to be used for a build build_definition
- Added the ability to create a build definition with Hierarchy, which allows additional functionality.
- Added HierarchyCreatedBuildDefinition to corrospond with the informaton above
- Projects are now creatable, and deletable.
- You can also get and set a project's pipeline settings
- Also able to get and set a project's repository settings

Changed

- `Removed` all plan logic, this was never fully implemented and was making things more complicated.
- Fixed `StateManagedResource._create`'s refetch argument.
- BuildDefinition.get_all_stages() now has better errors for creation without Hierarchy mode.
- Build.create no longer takes the `permit_use_of_var_groups` argument.
- Build's `approve_environment_for_pipeline` now has better error messages.
- `ansi_re_pattern` and `datetime_re_pattern` have been renamed to `ANSI_RE_PATTERN` and `DATETIME_RE_PATTERN` respectively.
- If search is not enabled for a project, it'll now error when trying to do a new search.

---

1.24.0

Added

- `Build`'s get_environment_approvals now doesn't supply pipelines with dependencies anymore (to prevent an issue).
- Ability to get `Build.get_root_stage_names()` to get all stages with no dependencies, at root level.

Changed

- `Run.create()` with stages_to_run now no longer mutates the list it takes, instead shadowing it and discarding at the end.
- Improved error message in `Run.get_task_parents`.

---

1.23.0

Added

- `PullRequest.create()` now accepts a target branch, this defaults to main, but can be overriden to any branch, including master.
- Better documentation around which Build methods return stages/jobs/task `display_name` versus returning their `internal_name`

Changed

- `BuildTimeline`s "identifier" has been renamed to `internal_name`.
- Repo's utility function "create_pull_request" now accepts a target branch name, and is_draft for setting it to draft.

---

1.22.0

Added

- `BuildDefinition.get_environment_approvals()`, which allows you to get a mapping of stage_name -> approval_id.
- Using the above with `approve_environment_for_pipeline` should allow you to approve environment stages, takes a stage_name

Changed

- Builds and BuildDefinitions have be split into their own files, it was getting to cluttered with all the new build features. This shouldn't change anything, since you can import both of them from the root directory (e.g. from ado_wrapper import Build, BuildDefinition) like before.
- `BuildDefinition`s __str__ method is now autogenerated by dataclasses.
- Docs are now running a newer version, so should be more up to date.

---

1.21.1

Added

- `BuildDefinition.get_all_stages()`'s stages_to_run now converts display names to internal names if provided.

---

1.21.0

Added

- `BuildDefinition.get_all_stages()` now takes template_parameters, whereas before it would simply use the defaults for that pipeline.
- A warning when trying to use an invalid access token.

Changed

- Fetching a list of `PersonalAccessTokens` using `PersonalAccessToken.get_access_tokens()` now works for days in the month < 10 (e.g. 1st->9th)
- Finally removed the deprecated `AdoClient.ado_org` and `AdoClient.ado_project`, use `ado_org_name` and `ado_project_name` instead.
- Fixed some tests regarding a renamed team (should create test environment for this reason, maybe one day)

---

Page 4 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.