浏览代码

ci: improve guideline check (#1867)

Dax 1 年之前
父节点
当前提交
6f584ec641
共有 1 个文件被更改,包括 7 次插入 和 2 次删除
  1. 7 2
      .github/workflows/guidelines-check.yml

+ 7 - 2
.github/workflows/guidelines-check.yml

@@ -27,10 +27,15 @@ jobs:
         run: |
           opencode run -m anthropic/claude-sonnet-4-20250514 "A new pull request has been created: '${{ github.event.pull_request.title }}'
 
-          PR description:
+          <pr-number>
+          ${{ github.event.pull_request.number }}
+          </pr-number>
+
+          <pr-description>
           ${{ github.event.pull_request.body }}
+          </pr-description>
 
-          Please check all the code changes in this pull request against the guidelines in AGENTS.md file in this repository.
+          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: