fix: Tcl 花括号变量 ${var} 的悬停、跳转和引用查找支持 #30
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Agent | |
| on: | |
| pull_request: | |
| types: [opened, reopened, ready_for_review, synchronize] | |
| issue_comment: | |
| types: [created] | |
| jobs: | |
| # synchronize 事件:使用 PAT 发送 /review -i 评论触发增量审查 | |
| # 不能用 GITHUB_TOKEN(bot 评论会被 PR Agent 忽略) | |
| trigger_incremental_review: | |
| if: github.event_name == 'pull_request' && github.event.action == 'synchronize' && github.event.pull_request.draft == false | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - name: Trigger incremental review | |
| env: | |
| GH_TOKEN: ${{ secrets.PR_ACTIONS_TOKEN }} | |
| run: | | |
| gh pr comment "${{ github.event.pull_request.number }}" \ | |
| --repo "${{ github.repository }}" \ | |
| --body "/review -i" | |
| # PR Agent 主任务 | |
| pr_agent_job: | |
| if: | | |
| ${{ (github.event_name == 'pull_request' && github.event.pull_request.draft == false && github.event.action != 'synchronize') || | |
| (github.event_name == 'issue_comment' && | |
| startsWith(github.event.comment.body, '/')) }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| contents: write | |
| name: Run PR Agent | |
| steps: | |
| - name: PR Agent | |
| uses: Codium-ai/pr-agent@main | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| deepseek.key: ${{ secrets.DEEPSEEK_KEY }} |