summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-08-12 13:42:46 -0400
committerDax Raad <[email protected]>2025-08-12 13:42:46 -0400
commitf62d826037990df7702dfe9ed4aed634bd393f40 (patch)
tree23e0e46a56da7f3e0b6d5b4016ced41ba74f4294
parent342f4239e425f45dea8fa139d91d3263c9af3e88 (diff)
downloadopencode-f62d826037990df7702dfe9ed4aed634bd393f40.tar.gz
opencode-f62d826037990df7702dfe9ed4aed634bd393f40.zip
ci: sync
-rw-r--r--.github/workflows/guidelines-check.yml12
1 files changed, 4 insertions, 8 deletions
diff --git a/.github/workflows/guidelines-check.yml b/.github/workflows/guidelines-check.yml
index cb3c9517e..b5e0fa821 100644
--- a/.github/workflows/guidelines-check.yml
+++ b/.github/workflows/guidelines-check.yml
@@ -37,18 +37,14 @@ jobs:
Please check all the code changes in this pull request against the guidelines in AGENTS.md file in this repository. Diffs are important but make sure you read the entire file to get proper context.
- For each violation you find, create a file comment using the gh CLI. Use this exact format for each violation:
+ For each violation you find, create a file comment using the gh CLI with the suggested fix.
\`\`\`bash
- gh pr review ${{ github.event.pull_request.number }} --comment-body 'This may be a conflict with AGENTS.md guidelines: [specific rule]. Consider: [suggestion]' --file 'path/to/file.ts' --line [line_number]
- \`\`\`
-
- When possible, also submit code change suggestions using:
-
- \`\`\`bash
- gh pr review ${{ github.event.pull_request.number }} --comment-body 'Suggested fix for AGENTS.md guideline:' --file 'path/to/file.ts' --line [line_number] --body '```suggestion
+ gh pr review ${{ github.event.pull_request.number }} --comment-body '[description-of-problem]' --file 'path/to/file.ts' --line [line_number] --body '```suggestion
[corrected code here]
```'
\`\`\`
+ If you do not have a fix you can just lave a comment without the suggestion.
+
Only create comments for actual violations. If the code follows all guidelines, don't run any gh commands."