Skip to main content

Utilities to automate things in ADO

Project description

ADO Automation

Build Status [Azure DevOps coverage (branch)] [Licence]

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?

See CHANGELOG

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azure-devops-automation-0.1.2.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

azure_devops_automation-0.1.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file azure-devops-automation-0.1.2.tar.gz.

File metadata

File hashes

Hashes for azure-devops-automation-0.1.2.tar.gz
Algorithm Hash digest
SHA256 abd0cb4f7c2beed941fbfa63592940a5d6de7ee559d680c7a156689543296061
MD5 33996f0f83b147567e0eb428847be7a6
BLAKE2b-256 f96c10ea6da0ddcc4d1f172e1e659f33d7660d15bb1f186227ddf54b09da5001

See more details on using hashes here.

File details

Details for the file azure_devops_automation-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for azure_devops_automation-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 58a5cfb5cbd9e3ffa3a2c46d8660ee7d5b95d497761195f42e5efa4fc8831c6e
MD5 5a1bb46587d05e3ceb19d877428a1e30
BLAKE2b-256 a2224abc315ba346bfebd23fc68f152abf6613d23611f861695cf64d8e5ad445

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page