Utilities to automate things in ADO
Project description
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
Code repository (ADO): [https://dev.azure.com/MusicalNinjas/_git/ADO]
Homepage: [https://dev.azure.com/MusicalNinjas/ADO]
What's New?
See [CHANGELOG.md]
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
- Azure-Function to call via Webhook to update parent/children items when chaging a work item on ADO Boards
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file azure-devops-automation-0.1.1.tar.gz
.
File metadata
- Download URL: azure-devops-automation-0.1.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f41f58bc60649c98e6008e5b2fea48fc2504d50c52494b2107d30d27722fe81a |
|
MD5 | 3948f77916a247a17ab9a894e184487d |
|
BLAKE2b-256 | c5d2bb47c9c6c7b2bcc5efc4eb48a44d38e870ef8ae7c4a36f7d0c0d0e6d3a26 |
File details
Details for the file azure_devops_automation-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: azure_devops_automation-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a13fa6999c4b19d99a48f5c81abe04cf5aff2ee1a844707f1432d4646cff167a |
|
MD5 | eb5cedcefae26e07c4ebbb8a0d840e6f |
|
BLAKE2b-256 | a49afc7abdda94f45959c3a38a76b3717ab83f00685131037d3c0fe4f72cd5ce |