Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Every compiled pipeline runs as three sequential jobs:
│ │ │ └── tests.rs # Extension integration tests
│ │ ├── codemods/ # Front-matter codemods (one file per transformation)
│ │ │ ├── mod.rs # Codemod struct, CODEMODS registry, runner
│ │ │ ├── 0001_repos_unified.rs # Legacy repositories/checkout → repos codemod
│ │ │ └── helpers.rs # take_key, insert_no_overwrite, rename_key, ConflictPolicy
│ │ ├── codemod_integration_test.rs # White-box rewrite-path tests (stub registry injection)
│ │ └── types.rs # Front matter grammar and types
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,7 @@ the service connections. Approve the permissions and the pipeline is ready.
| `on` | object | — | Unified trigger configuration (`schedule`, `pipeline` completion, `pr` triggers). See [schedule syntax](#schedule-syntax). |
| `pool` | string or object | `AZS-1ES-L-MMS-ubuntu-22.04` | Agent pool |
| `workspace` | `root` \| `repo` | auto | Working directory mode |
| `repositories` | list | — | Additional repository resources |
| `checkout` | list | — | Which repositories to check out |
| `repos` | list | — | Compact repository declarations (replaces legacy `repositories:` + `checkout:`) |
| `mcp-servers` | map | — | MCP server configuration |
| `tools` | object | — | Tool configuration (`bash`, `edit`, `cache-memory`, `azure-devops`) |
| `runtimes` | object | — | Runtime environment configuration (`lean`, `python`, `node`, `dotnet`) |
Expand Down Expand Up @@ -544,4 +543,4 @@ for automated releases via `release-please`.

## License

See [LICENSE](LICENSE) for details.
See [LICENSE](LICENSE) for details.
33 changes: 12 additions & 21 deletions prompts/create-ado-agentic-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,28 +132,23 @@ Controls where the agent's working directory is set.
| `root` (default) | `$(Build.SourcesDirectory)` | Only checking out `self` |
| `repo` | `$(Build.SourcesDirectory)/$(Build.Repository.Name)` | Multiple repos checked out |

Only include `workspace:` if non-default. Warn the user if they set `workspace: repo` but have no additional repos in `checkout:`.
Only include `workspace:` if non-default. Warn the user if they set `workspace: repo` but have no additional repos in `repos:`.

### Step 5 — Repositories & Checkout

Declare extra repositories the pipeline can access, then select which ones the agent actually checks out.
Declare extra repositories the pipeline can access and whether the agent checks them out.

```yaml
repositories:
- repository: my-other-repo # alias
type: git
name: my-org/my-other-repo # org/repo
- repository: templates
type: git
name: my-org/pipeline-templates

checkout:
- my-other-repo # only check this one out; "templates" stays as a resource only
repos:
- my-org/my-other-repo
- name: my-org/pipeline-templates
alias: templates
checkout: false
```

- `repositories:` — pipeline-level resources (for templates, pipeline triggers, etc.)
- `checkout:` — which aliases the agent actually checks out alongside `self`
- Omit `checkout:` entirely to check out only `self`
- `repos:` replaces the legacy `repositories:` + `checkout:` pair
- Use shorthand (`org/repo` or `alias=org/repo`) for the common case where the agent should check out the repo alongside `self`
- Use object form with `checkout: false` when the repo should be available as a resource only (for templates, pipeline triggers, etc.)

### Step 6 — Pool

Expand Down Expand Up @@ -629,12 +624,8 @@ safe-outputs:
Agent checks out and modifies a secondary repository.

```yaml
repositories:
- repository: shared-config
type: git
name: my-org/shared-config
checkout:
- shared-config
repos:
- my-org/shared-config
workspace: repo
permissions:
read: my-read-sc
Expand Down