An Azure DevOps cli tool
Project description
AzDevOps CLI
I.Continuous integration
Branch | Build | Quality Gate |
---|---|---|
main | ||
develop |
II.Introduction
This project is used to update all selected repositories in one single script define by a config.yml
file.
The python script will automatically clone the repositories, modify it and propose a pull request on each repository inside Azure DevOps.
III. Getting Started
Create a dev environment for the project:
python3 -m venv .venv
Activate the dev environment:
source .venv/bin/activate
Install python packages for the project:
pip install -r requirements.txt
Save the packages used in the project into the requirements.txt
:
pip freeze > requirements.txt
Export credentials as environment variable to be able to run the API calls:
export AZURE_DEVOPS_PAT='<your_email>:<your_pat>'
IV - Models generation
Transform the config.yml
into json with this website for instance:
https://jsonformatter.org/yaml-to-json
Then copy the generated json and paste it inside this other website: https://app.quicktype.io/
Choose default settings with the Python language.
V - Install locally for testing only
python3 -m pip install --editable .
VI - Run the CLI
azdevops repo-updater run --configuration-file <path-to>/config.yml -o <output-path>
azdevops release-manager changelog -p <your-project-path> -o <output-path>
VII - Unit tests
Run unit tests:
python3 -m unittest
or
coverage run -m unittest discover
Generate covrage locally
coverage report
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 Distributions
Built Distribution
Hashes for azdevops_cli-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1bbe34dd1b1d5e8787f78ddcecb16f36059f632405b860d71d1f1ef3c43d7d9 |
|
MD5 | 5a5b47bc79b3362dff1b99774648de8d |
|
BLAKE2b-256 | b3514917d742fbad7ef5e1d91999040b99ab1a1c25651ef0c7239e6ba6e5c0fc |