From e78fe8dcba454510557fa97c273472ab18d2addd Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Tue, 12 Aug 2025 13:53:32 -0400 Subject: [PATCH] ci: tweak --- .github/workflows/guidelines-check.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/guidelines-check.yml b/.github/workflows/guidelines-check.yml index b5e0fa82..5a098c4a 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 have a suggestion for how to fix the problem the body can include a suggestion: + ``` + \`\`\`suggestion + [suggested 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."