summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-08-12 13:53:32 -0400
committerDax Raad <[email protected]>2025-08-12 13:53:32 -0400
commite78fe8dcba454510557fa97c273472ab18d2addd (patch)
tree090cfd1a40149c995fdc10adb5d763b6908c622e /.github/workflows
parentf62d826037990df7702dfe9ed4aed634bd393f40 (diff)
downloadopencode-e78fe8dcba454510557fa97c273472ab18d2addd.tar.gz
opencode-e78fe8dcba454510557fa97c273472ab18d2addd.zip
ci: tweak
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/guidelines-check.yml17
1 files changed, 10 insertions, 7 deletions
diff --git a/.github/workflows/guidelines-check.yml b/.github/workflows/guidelines-check.yml
index b5e0fa821..5a098c4a1 100644
--- a/.github/workflows/guidelines-check.yml
+++ b/.github/workflows/guidelines-check.yml
@@ -37,14 +37,17 @@ 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 with the suggested fix.
+ For each violation you find, create a file comment using the gh CLI
- \`\`\`bash
- 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]
- ```'
- \`\`\`
+ ```
+ 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 do not have a fix you can just lave a comment without the suggestion.
+ If you have a suggestion for how to fix the problem the body can include a suggestion:
+ ```
+ \`\`\`suggestion
+ [suggested code here]
+ \`\`\`
+ ```
Only create comments for actual violations. If the code follows all guidelines, don't run any gh commands."