Skip to content

Commit ef55fd7

Browse files
meysholdtona-agent
andcommitted
Add ona ai automation create/update/list instructions to README
Co-authored-by: Ona <no-reply@ona.com>
1 parent 0de22a3 commit ef55fd7

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,32 @@ Copy the two automation files into your repo:
199199

200200
Adjust the agent prompts if your project uses a different build tool (e.g., replace `./mvnw` with `./gradlew` or `npm`).
201201

202-
Trigger them manually from the Ona dashboard. Each run picks the highest-severity open alert, fixes it, and opens a PR.
202+
#### Install automations
203+
204+
Use the Ona CLI to register each automation:
205+
206+
```bash
207+
ona ai automation create .ona/fix-dependabot-alert.yaml
208+
ona ai automation create .ona/fix-codescan-alert.yaml
209+
```
210+
211+
#### Update automations
212+
213+
After editing a YAML file, update the registered automation. First find the automation ID:
214+
215+
```bash
216+
ona ai automation list
217+
```
218+
219+
Then apply the updated file:
220+
221+
```bash
222+
ona ai automation update <automation-id> .ona/fix-dependabot-alert.yaml
223+
```
224+
225+
#### Run automations
226+
227+
Trigger them manually from the Ona dashboard or via the CLI. Each run picks the highest-severity open alert, fixes it, and opens a PR.
203228

204229
## License
205230

0 commit comments

Comments
 (0)