Add ADR auto-generation and tracking for deployments#45
Draft
Add ADR auto-generation and tracking for deployments#45
Conversation
5 tasks
- Add adr-manager.sh script with generate, amend, index, and list commands - Add adr-generator skill definition - Update deploy workflow to generate ADR after successful deployment - Update destroy workflow to amend ADR when deployment is destroyed - Update deployment-manager.sh to show linked ADR in deployment details - Update state.md to document ADR directory structure and metadata fields - Add ADR documentation page (website/docs/deployment/adrs.md) - Regenerate docs to include new skill Agent-Logs-Url: https://github.com/Azure/git-ape/sessions/38650766-10c9-4746-b681-0a53bc22efe1 Co-authored-by: arnaudlh <20535201+arnaudlh@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add ADR auto-generation and tracking functionality
Add ADR auto-generation and tracking for deployments
May 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Git-ape generates architecture diagrams but doesn't produce or track Architecture Decision Records. This adds automatic ADR generation after each deployment, maintaining a governed ledger of infrastructure decisions.
Core script:
.github/scripts/adr-manager.shgenerate <deployment-id>— reads metadata/requirements/WAF review, creates numbered ADR in.azure/adrs/, links back viametadata.jsonamend <deployment-id> [reason]— appends amendment entries; marks ADR as "Superseded" on destroyindex— rebuildsINDEX.mdtablelist— displays all ADRs with statusWorkflow integration
state.jsonADR format
Metadata linkage
After generation,
metadata.jsongains:{ "adrFile": ".azure/adrs/0001-deploy-api-dev.md", "adrNumber": 1 }Other changes
deployment-manager.sh showdisplays linked ADRwebsite/docs/deployment/adrs.mddocuments lifecycle.github/skills/adr-generator/SKILL.mdskill definition for agent invocation.azure/adrs/directory structure