File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -199,7 +199,32 @@ Copy the two automation files into your repo:
199199
200200Adjust 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
You can’t perform that action at this time.
0 commit comments