summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-08-12 14:17:18 -0400
committerDax Raad <[email protected]>2025-08-12 14:17:18 -0400
commit596d4e449003f06b665607110b6bf0d965777746 (patch)
tree54d176c4c2720de4a28720c04b50d69490979cc3 /.github/workflows
parent45451095f70196f532763c5684d6bc79cc24d288 (diff)
downloadopencode-596d4e449003f06b665607110b6bf0d965777746.tar.gz
opencode-596d4e449003f06b665607110b6bf0d965777746.zip
ci: sync
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/guidelines-check.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.github/workflows/guidelines-check.yml b/.github/workflows/guidelines-check.yml
index 0c424ad22..a21f0be19 100644
--- a/.github/workflows/guidelines-check.yml
+++ b/.github/workflows/guidelines-check.yml
@@ -39,4 +39,14 @@ jobs:
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.
+ Command should be like this
+ ```
+ gh api \
+ --method POST \
+ -H "Accept: application/vnd.github+json" \
+ -H "X-GitHub-Api-Version: 2022-11-28" \
+ /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/comments \
+ -f 'body=[summary of issue]' -f 'commit_id=${{ github.event.pull_request.head.sha }}' -f 'path=[path-to-file]' -F "line=[line]" -f 'side=RIGHT'
+ ```
+
Only create comments for actual violations. If the code follows all guidelines, don't run any gh commands."