polatengin / indiana

Create Azure DevOps project items using a json template
MIT License
0 stars 1 forks source link
azdo azure-devops comments github issues labels nodejs project repo typescript work-items

Observability Epic for Engineering Projects

Overview

This script is designed to enhance the maturity of observability capabilities in our engineering projects. It allows users to add pre-defined epic, features, and user stories aligned with the Observability Maturity Model, facilitating the creation of a project backlog. The script supports three orchestrators - Azure DevOps (AzDo), GitHub, and Markdown - and can be customized to suit specific project needs.

The current list of work items is documented in doc/workitems.md.

Prerequisites

Run npm install to download all dependencies defined in package.json.

Running the Script

For Azure DevOps (AzDo) Orchestrator

ts-node index.ts --orchestrator azdo --token YOUR_AZDO_PAT --organization YOUR_ORG --project YOUR_PROJECT --file work_items.json

For GitHub Orchestrator

ts-node index.ts --orchestrator github --token YOUR_GITHUB_PAT --organization YOUR_ORG --project YOUR_REPO --file work_items.json

Generating Documentation

To generate documentation after updating work_items.json (which contains the current work items), run the script with the Markdown orchestrator. This will produce Markdown in the target file (doc/workitems.md) with a structured documentation of the work items.

The target file must already exist. The script will replace the contents of two blocks marked with start and end comments:

Table of Contents - \ and \ Work Items - \ and \

Command:

ts-node index.ts --orchestrator markdown --file work_items.json --output doc/workitems.md

Ensure that work_items.json is updated with the latest work items before running the command. The script will parse the JSON file and convert the content into a structured Markdown document.

Notes