Why define Automations as code
- Version control. Track changes in Git. Review diffs, revert mistakes, use branches.
- Reproducibility. The YAML file is the source of truth. No UI clicks to reconstruct a lost Automation.
- Distribution. Commit Automation files to any repository. Team members run
gitpod ai automation createto instantiate them.
Prerequisites
- Ona CLI installed and authenticated (
gitpod login)
Discover the YAML syntax
Generate a reference file covering the full syntax:Create an Automation from a file
Update an existing Automation
Find the Automation ID:triggers and action are replaced entirely, not merged.
Real-world example
ona-samples/github-security contains two Automation files that pick the highest-severity open security alert, fix it, run tests, and open a PR:.ona/fix-dependabot-alert.yaml— upgrades vulnerable dependencies flagged by Dependabot.ona/fix-codescan-alert.yaml— fixes code scanning findings from CodeQL, Trivy, or OSV-Scanner
Next steps
- Creating Automations — UI-based setup
- Automations in practice — real-world templates
- Report step — structured data extraction
- CLI reference — full command reference