Azure / Azure/azure-dev

add support to filter which files from an azd template are copied during init

Open
#6,773 1 comment 0 reactions 0 assignees View on GitHub
area/templates feature
Dominant language
Go
Stars
569
Forks
364
Avg merge
2d 19h
Merged PRs (30d)
136

Description

In the ai agent extension, we rely on https://github.com/Azure-Samples/azd-ai-starter-basic.

This can work OK if you start from a totally empty repo directory because azd init -t is going to copy _everything_ from the repo (shallow clone). For existing repos / projects, and running `azd ai agent init`, we don't want all the other repo parts of the template (README, .gitignore, issue templates, etc.). We only need the azure.yaml and infra/ directory.

We need a way to filter what is used from a template, akin to .azdignore that our tools can use.

Here is an example of everything I needed to remove from the official template for the ai agent scenario: https://github.com/Azure-Samples/azd-ai-starter-basic/compare/main...therealjohn:azd-ai-starter-basic:main

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.