feat: Git-Ape canvas for the GitHub Copilot app (deployments, setup, launchpad)
Los mantenedores suelen responder en 3 días
@arnaudlh ya está trabajando en esto.
Desde el 25/11/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Summary
Add a GitHub Copilot app canvas for Git-Ape: a side panel next to chat with three views.
- Deployments: browse the deployments in
.azure/deployments/and see existing drift automation status when configured. - Setup: check whether the repository is ready for Git-Ape onboarding.
- Launchpad: start the main Git-Ape agents and skills with one click.
It is a Copilot CLI extension in .github/extensions/git-ape-deployments/. The Copilot app loads it automatically for sessions in this repository, and users can install it at user scope to use it in any repository.
Problem
Git-Ape keeps its state in files and in GitHub: deployment artifacts under .azure/deployments/<id>/ (metadata.json, state.json, tests.json, architecture.md, template.json, logs), plus workflow files, environments and secrets. To answer simple questions, users must read JSON files, run az and gh commands, or ask the agent:
- Which deployments exist, what state are they in, and did their tests pass?
- What does a deployment's architecture look like?
- What did the last automated drift check find, and is that report still from the latest run?
- Is this repository ready for onboarding, and what is missing?
- Which agent or skill should I use to start?
The Copilot app has no visual entry point for any of this.
Proposal
Deployments view
- A list of deployments, newest first, with a status badge, project, environment and region, and a search box.
- Detail tabs for the selected deployment:
- Overview: summary, managed resources, integration test results and the selected deployment's reported drift status.
- Architecture: the Mermaid diagrams from
architecture.md. - Template: parameters, outputs and resources, including resources inside nested deployments.
- Logs:
deployment.log,error.logandrollback.log(last 16 KB). - Files: the files in the deployment folder.
- The view refreshes live when files under
.azure/deployments/change. - Buttons that send a prompt to chat for the selected deployment: Ask Copilot to summarize, Check drift (
azure-drift-detector) and Re-run tests (azure-integration-tester).
Existing drift automation status
This is part of the Deployments view, separate from the Check drift button that requests a new check.
- Detect runnable
git-ape-drift*.yml/.yamlworkflows under.github/workflows, includinggit-ape-drift.lock.yml. Hide the status section when none is configured; ignore unrelated workflows with "drift" in their names. - Show the latest run of each detected workflow, its status/conclusion, timestamp and a link to the run.
- Read the newest
[drift-status]report issue with thedrift-statuslabel. Display the check timestamp, tracked/deployments-with-drift counts, and a link to the report. - Match deployment IDs to the report's Deployments table. Show reported no-drift, drift count/severity, skipped or unknown in deployment cards and Overview. Preserve qualifications such as suppressed findings.
- Distinguish report findings from workflow execution status. A successful run without a report is not evidence of no drift. Failed/in-progress newer runs or unmatched reports make previous findings visibly stale; inaccessible or unparseable data is Unknown, never green.
- Fetch automatically in the Deployments view, cache GitHub reads for five minutes, and provide Refresh drift status. Refresh reads existing results only; it never dispatches a workflow or changes Azure.
- Use the session's existing GitHub CLI authentication and repository context. Surface missing CLI, sign-in, SSO and permission errors without changing accounts.
Setup view
A read-only checklist of what git-ape-onboarding needs:
| Group | Checks |
|---|---|
| CLI tools | az 2.50 or later, gh 2.0 or later, jq 1.6 or later, git |
| Sign-in | az account show and gh api user |
| Repository files | The four git-ape-*.yml workflows and copilot-instructions.md. The drift workflow is optional. |
| GitHub configuration | Admin permission, default branch main, the azure-deploy and azure-destroy environments, the AZURE_CLIENT_ID and AZURE_TENANT_ID secrets, and the AZURE_SUBSCRIPTION_ID variable. COPILOT_GITHUB_TOKEN is optional. |
- Repository files are checked every time the view loads. The CLI and GitHub checks run only when the user selects Run checks.
- When organization SAML SSO blocks the
ghtoken, the check shows Unknown and explains how to authorize it. - Start onboarding runs the
git-ape-onboardingskill and includes the current gaps in the prompt. Check prerequisites with Copilot runs theprereq-checkskill.
Launchpad view
| Card | Runs |
|---|---|
| New deployment | Git-Ape agent |
| Import existing resources | Azure IaC Exporter agent |
| Architecture review | Azure Principal Architect agent |
| Policy compliance | Azure Policy Advisor agent |
| Find skills | git-ape-skills skill (search only, no install) |
Every button only sends a prompt to chat. The skills and agents keep their own confirmation gates, so nothing changes in Azure or GitHub until the user approves it in chat.
Agent actions
Copilot can drive the canvas too:
| Action | Description |
|---|---|
refresh |
Rescans the deployments directory and returns deployment summaries. |
show_deployment |
Selects a deployment and returns its summary, resources, tests and file list. |
get_selection |
Returns the deployment the user has selected. |
show_view |
Switches to the deployments, setup or launchpad view. |
get_setup_status |
Returns the onboarding checklist. With run: true, runs the CLI and GitHub checks first. |
get_drift_status |
Reads existing drift workflow runs and the latest report. With refresh: true, bypasses the five-minute cache; never starts a check. |
Open input: view, deploymentId and deploymentsDir (defaults to .azure/deployments).
Use in other repositories
The project copy loads only in this repository. The README shows how to copy the folder to ~/.copilot/extensions/git-ape-deployments/ (bash and PowerShell). The user copy reads the repository of the current session. In this repository it steps aside, so the project copy is used and the canvas ID stays unique.
Security design
- The canvas is read-only. It never changes deployment artifacts, repository settings or Azure resources.
- Setup checks run
az,gh,jqandgitthroughexecFilewith fixed arguments, no shell and a 20-second timeout. Only the names of secrets and variables are read, never their values. Error text is replaced with a fixed message or cut to one line of 160 characters at most. - Drift status uses read-only
gh run listandgh issue listcalls. Report content is untrusted data, rendered as text rather than executed or injected as HTML. - Prompts are built on the server from a fixed list. The page sends only an intent ID and, where needed, a deployment ID.
- Each panel runs its own server on
127.0.0.1with a random port. POST requests need a per-panel token andContent-Type: application/json. - Deployment IDs must match a strict pattern and stay inside the deployments directory.
- Artifact content is rendered as text. Mermaid renders with
securityLevel: "strict". A pinned Mermaid 11.17.2 bundle is downloaded once, checked against a SHA-384 hash, cached under~/.copilot/extensions/git-ape-deployments/artifacts/and served locally. The page never loads remote scripts. If the download fails, the diagram source is shown instead.
Implementation
A local prototype exists, but its code has not been committed or pushed. This issue records the proposed behavior and implementation scope; it does not indicate that the extension has shipped.
| File | Purpose |
|---|---|
extension.mjs |
Canvas definition, agent actions and the local HTTP server |
lib/deployments.mjs |
Reads deployment artifacts |
lib/setup.mjs |
Read-only onboarding checks |
lib/drift.mjs |
Workflow discovery, existing run/report reads, report parsing, freshness and cache |
lib/intents.mjs |
The fixed list of chat prompts |
lib/mermaid-bundle.mjs |
Pinned Mermaid download, hash check and cache |
ui/ |
index.html, app.js and styles.css, using the app theme tokens for light and dark mode |
README.md |
Usage, install in other repositories, actions and security notes |
There is no package.json and no new dependency: the Copilot CLI provides the SDK. No existing skill, agent or workflow changes.
Testing
- Tested in this repository with sample deployments in different states (succeeded, failed, destroy requested): Mermaid rendering, live refresh, the setup checks (including the SAML case) and the token check on POST requests.
- Tested the user-scope copy against another repository that uses Git-Ape: repository detection, deployments and setup checks.
- Drift status: six focused Node tests cover workflow discovery, report parsing, stale/failed/in-progress runs, missing reports, authorization errors, caching and refresh. Browser fixtures verify reported drift and stale findings in cards and Overview; the real canvas endpoint enforces the refresh token and hides status without automation.
- Live status retrieval from the other repository currently returns Unknown with the session's GitHub identity. Successful live-report retrieval still needs verification with an authorized account.
Follow-ups
- Confirm successful live-report retrieval with an authorized GitHub identity before shipping.
- Add a page to the website docs.
- Decide whether to ship the canvas with the Git-Ape plugin, so users don't have to copy it by hand.
- Lenguaje dominante
- JavaScript
- Estrellas
- 282
- Forks
- 50
- Merge medio
- 4 d 20 h
- PR fusionados (30 d)
- 18
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Azure/git-ape
-
daily-status report
Dificultad 1/5 Menos de una hora Aptitud para principiantes 1/100
Los mantenedores suelen responder en 3 días
-
report workshop-coverage
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
Los mantenedores suelen responder en 3 días
-
agentic-workflows workshop workshop-sync
Dificultad 2/5 1-3 horas Aptitud para principiantes 18/100
Azure/git-ape#518 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
agentic-workflows
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
Los mantenedores suelen responder en 3 días
-
agentic-workflows
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Los mantenedores suelen responder en 3 días
Todos los issues de Azure/git-ape
Issues similares
-
[workshop-sync] workshop/06-install-gh-aw.md: example version output is outdated (0.81.6 vs v1.2.2)Abiertodocumentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
githubnext/gh-aw-workshop#6467 ·
Los mantenedores suelen responder en 1 día
-
bug good first issue help wanted up-for-grabs
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ClickHouse/loom#2075 ·
Los mantenedores suelen responder en 1 día
-
fix
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
idean3885/claude-ops-agent#1367 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
cytoscape/cytoscape-web#1032 ·
Los mantenedores suelen responder en 1 día
-
Add: ANTENNA New ReleasesAbiertochannels:add check:passed
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día