mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 11:14:23 +01:00
ci: sync
This commit is contained in:
13
.github/workflows/guidelines-check.yml
vendored
13
.github/workflows/guidelines-check.yml
vendored
@@ -37,17 +37,6 @@ 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. Make it clear the suggestions are merely suggestions and the human can decide what to do
|
||||
|
||||
For each violation you find, create a file comment using the following command EXACTLY as shown:
|
||||
|
||||
```
|
||||
gh api repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/comments -f body='[description of problem]' -f path='[path-to-file]' -f line=[line-number] -f side='RIGHT'
|
||||
```
|
||||
|
||||
If you have a suggestion for how to fix the problem the body can include a suggestion:
|
||||
```
|
||||
\`\`\`suggestion
|
||||
[suggested code here]
|
||||
\`\`\`
|
||||
```
|
||||
Use the gh cli to create comments on the files for the violations. Try to leave the comment on the exact line number. If you have a suggested fix include it in a suggestion code block.
|
||||
|
||||
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