mirror of
https://github.com/ZhuLinsen/daily_stock_analysis
synced 2026-09-20 10:53:33 +08:00
ci: temporarily disable automatic PR review (#2068)
This commit is contained in:
24
.github/workflows/pr-review.yml
vendored
24
.github/workflows/pr-review.yml
vendored
@@ -1,29 +1,9 @@
|
||||
# PR 自动审查 - 元数据检查 + AI 语义审查
|
||||
# 特权 pull_request_target 流程只读取 GitHub API 数据,不检出或执行 fork PR 代码。
|
||||
# PR 手动辅助审查 - 元数据检查 + AI 语义审查
|
||||
# 暂停 PR 自动触发;维护者可按 PR 编号手动运行,且不会检出或执行 fork PR 代码。
|
||||
|
||||
name: PR Review
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened, synchronize, reopened]
|
||||
paths:
|
||||
- '**.py'
|
||||
- '**.md'
|
||||
- '**.ts'
|
||||
- '**.tsx'
|
||||
- 'docs/**'
|
||||
- 'README.md'
|
||||
- 'AGENTS.md'
|
||||
- 'apps/dsa-web/**'
|
||||
- 'requirements.txt'
|
||||
- '.github/requirements-ci.txt'
|
||||
- 'pyproject.toml'
|
||||
- 'setup.cfg'
|
||||
- '.github/PULL_REQUEST_TEMPLATE.md'
|
||||
- '.github/workflows/**'
|
||||
- '.github/scripts/**'
|
||||
- 'docker/Dockerfile'
|
||||
- 'docker-compose.yml'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
pr_number:
|
||||
|
||||
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
||||
> For user-friendly release highlights, see the [GitHub Releases](https://github.com/ZhuLinsen/daily_stock_analysis/releases) page.
|
||||
|
||||
## [Unreleased]
|
||||
- [chore] 暂停 PR Review 的自动触发,仅保留 `workflow_dispatch` 手动入口,避免辅助评审重复运行及评论权限失败产生误导性红灯;正式 CI 检查保持不变。
|
||||
- [新功能] Multi-Agent specialist 运行在分析历史保存成功后,按独立 skill 持久化版本化、低敏且幂等的有效 opinion 样本,为后续后验评估提供真实数据;本阶段不计算 outcome、不统计表现、不调整权重。
|
||||
- [新功能] Multi-Agent 报告按八态用户 action 追踪 Pipeline 最终调整,排除非法 Agent 意见;仅在 canonical action 可唯一解析时生成 explanation 与 DecisionSignal,并以同一个 `final_action` 统一最终动作契约。
|
||||
- [新功能] 新增 `--portfolio futu`,只读导入 Futu OpenD 真实账户的沪深 A 股、港股、美股 LONG 正股持仓作为分析列表。
|
||||
|
||||
@@ -81,7 +81,7 @@ docs: 更新 README 部署说明
|
||||
| backend-gate | `scripts/ci_gate.sh`(py_compile + flake8 严重错误 + 本地核心脚本 + offline pytest) | ✅ |
|
||||
| docker-build | Docker 镜像构建与关键模块导入 smoke | ✅ |
|
||||
| web-gate | 前端变更时执行 `npm run lint` + `npm run build` | ✅(触发时) |
|
||||
| pr-review | `pull_request_target` 辅助审查:通过 GitHub API 读取 PR 元数据和 diff,执行敏感文件标记、AI 审查、自动标签与报告评论;不检出或执行 fork PR 代码,Python/Flake8 等执行型检查由 `backend-gate` 负责 | ❌(辅助项) |
|
||||
| pr-review | 暂停 PR 自动触发,仅保留维护者通过 `workflow_dispatch` 按 PR 编号手动运行;通过 GitHub API 读取 PR 元数据和 diff,不检出或执行 fork PR 代码 | ❌(辅助项) |
|
||||
| network-smoke | 定时/手动执行 `pytest -m network` + `scripts/test.sh quick`(非阻断) | ❌(观测项) |
|
||||
|
||||
**本地运行检查:**
|
||||
|
||||
@@ -83,7 +83,7 @@ After opening a PR, CI will automatically run the following PR checks:
|
||||
| `backend-gate` | `scripts/ci_gate.sh` — py_compile + flake8 critical errors + `./scripts/test.sh code` + `./scripts/test.sh yfinance` + offline pytest | ✅ |
|
||||
| `docker-build` | Docker image build and key module import smoke test | ✅ |
|
||||
| `web-gate` | `npm run lint` + `npm run build` (triggered when `apps/dsa-web/` changes) | ✅ (when triggered) |
|
||||
| `pr-review` | Advisory `pull_request_target` review that reads PR metadata and diff through the GitHub API for sensitive-file flags, AI review, labels, and report comments. It never checks out or executes fork PR code; Python and Flake8 execution remains in `backend-gate`. | ❌ (advisory) |
|
||||
| `pr-review` | Automatic PR triggering is temporarily paused. Maintainers can still run it by PR number through `workflow_dispatch`; it reads PR metadata and diff through the GitHub API and never checks out or executes fork PR code. | ❌ (advisory) |
|
||||
|
||||
Separately, the repository also has a non-blocking `network-smoke` workflow in `.github/workflows/network-smoke.yml`, but it is only triggered by `schedule` and `workflow_dispatch`, not by pull requests.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user