mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 11:14:23 +01:00
ci: sync
This commit is contained in:
12
.github/workflows/guidelines-check.yml
vendored
12
.github/workflows/guidelines-check.yml
vendored
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user