Skip to content

Commit da1935c

Browse files
meysholdtona-agent
andcommitted
updated automation
Co-authored-by: Ona <no-reply@ona.com>
1 parent a458a4f commit da1935c

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

.ona/fix-sonar-issue.yaml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
name: fix-sonar-issue
2+
description: >-
3+
Picks the highest-severity open SonarQube issue, applies a fix,
4+
verifies tests pass, and opens a pull request.
5+
triggers:
6+
- context:
7+
projects: {}
8+
manual: {}
19
action:
210
limits:
311
maxParallel: 1
@@ -24,10 +32,8 @@ action:
2432
1. Create a new git branch named "sonar-fix/<rule-key>" (e.g. sonar-fix/java-S2699).
2533
2. Apply the minimal fix that resolves the SonarQube issue while preserving
2634
existing behavior. Follow the project's code style and conventions.
27-
3. Commit the fix with message: "Fix SonarQube <rule-key>: <short description>"
28-
Add co-author: "Co-authored-by: Ona <no-reply@ona.com>"
2935
30-
Do NOT run tests yet.
36+
Do NOT commit or run tests yet.
3137
- agent:
3238
prompt: |
3339
Verify the fix from the previous step:
@@ -40,6 +46,10 @@ action:
4046
d. Rerun `./mvnw compile test`.
4147
e. Repeat until all tests pass.
4248
3. Once tests pass, confirm the fix is complete.
49+
- agent:
50+
prompt: |
51+
Commit the fix with message: "Fix SonarQube <rule-key>: <short description>"
52+
Add co-author: "Co-authored-by: Ona <no-reply@ona.com>"
4353
- pullRequest:
4454
branch: sonar-fix/<issue>
4555
title: 'Sonar-Fix: <title>'
@@ -68,11 +78,3 @@ action:
6878
6979
- [x] `./mvnw compile test` passes
7080
- [x] Fix is minimal and preserves existing behavior
71-
description: >-
72-
Picks the highest-severity open SonarQube issue, applies a fix,
73-
verifies tests pass, and opens a pull request.
74-
name: fix-sonar-issue
75-
triggers:
76-
- context:
77-
projects: {}
78-
manual: {}

0 commit comments

Comments
 (0)