Skip to content
Merged
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
22 changes: 11 additions & 11 deletions site/src/content/docs/guides/creating-agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -228,24 +228,27 @@ That makes the agent run inside the `docs` repository.

## Add triggers

Configure triggers under `on:`.
Configure triggers under `on:`. ado-aw supports three trigger types: `pr:` (pull request), `pipeline:` (pipeline completion), and `schedule:`.

### Push
### Pull request

```yaml
on:
push:
pr:
branches:
include: [main]
```

### Pull request
### Pipeline completion

Triggers when another ADO pipeline finishes:

```yaml
on:
pull_request:
pipeline:
name: "Build Pipeline"
branches:
include: [main]
- main
```

### Schedule
Expand All @@ -259,10 +262,7 @@ You can combine them:

```yaml
on:
push:
branches:
include: [main]
pull_request:
pr:
branches:
include: [main]
schedule: weekly on monday around 09:00
Expand All @@ -280,7 +280,7 @@ workspace: repo
repos:
- infra=my-org/infra-scripts
on:
pull_request:
pr:
branches:
include: [main]
schedule: weekly on monday around 09:00
Expand Down