ADO Automation
Introduction
A collection of automation tools to use in ADO pipelines and webhooks
Installation
pip install azure-devops-automation
Pull Request functions
A sample yaml file is included which runs changelog and then checkin for the current PR if included in the PR Build validation policies
changelog
Updates (and creates if required) a CHANGELOG markdown file using data from a given Pull Request
python -m ado_automation.PR changelog --help
usage: ado_automations.PR changelog [-h] --path PATH --collectionuri COLLECTIONURI --project PROJECT --pr PR
options:
-h, --help show this help message and exit
--path PATH relative path to changelog file, including filename
--collectionuri COLLECTIONURI
base uri to ADO organisation
--project PROJECT ADO project name
--pr PR pull request ID
checkin
Commits and pushes any changes made in the detached head state after a PR merge into the PR source branch. Commits with the name and email address of the PR author, pushes as BuildService.
python -m ado_automation.PR checkin --help
usage: ado_automations.PR checkin [-h] --collectionuri COLLECTIONURI --project PROJECT --pr PR [-v]
options:
-h, --help show this help message and exit
--collectionuri COLLECTIONURI
base uri to ADO organisation
--project PROJECT ADO project name
--pr PR pull request ID
-v, --verbosity increase output verbosity
Build and Test
Tests are written for pytest in /tests/test_*.py
Contribute
What's New?
Coming Next
- Validate against complex and edge cases (eg main updated by other working branches since creating source branch)
- Create setup script to generate yaml templates
- add section markers to CHANGELOG to allow import into README
- Azure-Function to call via Webhook to update parent/children items when changing a work item on ADO Boards
Metadata
Release files for azure-devops-automation 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| azure-devops-automation-0.2.0.tar.gz | 7.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| azure_devops_automation-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.0 kB
Release files / azure-devops-automation-0.2.0.tar.gz
| Download URL | azure-devops-automation-0.2.0.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc1fc5dc3ef414867e36442ee95e35789769f1d9cf679b8bc4426d75b54a9a0b
|
|
BLAKE2b-256 checksum How to use checksums |
0b5d04023952384444f0f5edc0948c2e2af726ede8414f554b705683c0d4f872
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / azure_devops_automation-0.2.0-py3-none-any.whl
| Download URL | azure_devops_automation-0.2.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81b7ea72d5b651b5e30f5cd03416a1202e3e53f2683dd1a544343872f193fef9
|
|
BLAKE2b-256 checksum How to use checksums |
083ec9076383c46b2ef46571eb591ae9754c15984624386f1d82275cde24d8c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Security for azure-devops-automation 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.