# PR #2718 完整报告

- 仓库：`radixark/miles`
- 标题：fix(ci): App-free rerun commands at contributor tier, with fork /rerun-test under label approval
- 合并时间：2026-08-23 17:16
- 原文链接：http://prhub.com.cn/radixark/miles/pull/2718

---

# 执行摘要

- 一句话：
- 推荐动作：

# 功能与动机



# 实现拆解

1. **测试与验证**
- `tests/ci/test/test_comment_ci_command.py`（test-coverage）：测试配套；涉及符号 event, test_file_run_rejects_fork_prs_before_authorization, test_fork_file_run_without_contributor_tier_or_write_is_denied, test_repository_writer_dispatches_a_fork_file_run；包含 测试覆盖调整、控制流调整、配置键调整；+190/-42；关键符号：event, test_file_run_rejects_fork_prs_before_authorization, test_fork_file_run_without_contributor_tier_or_write_is_denied, test_repository_writer_dispatches_a_fork_file_run
- `tests/ci/test/test_file_run.py`（test-coverage）：测试配套；包含 测试覆盖调整、配置键调整；+11/-0

2. **配置与运行环境**
- `.github/workflows/scripts/comment_ci_command.py`（infrastructure）：部署 / 基础设施；涉及符号 _validate_author_associations, require_access；包含 控制流调整、配置键调整、异常路径调整；+122/-16；关键符号：_validate_author_associations, require_access
- `.github/workflows/comment-ci-command.yml`（infrastructure）：部署 / 基础设施；包含 控制流调整、配置键调整、异常路径调整；+30/-29
- `.github/workflows/run-ci-file.yml`（infrastructure）：部署 / 基础设施；包含 控制流调整、配置键调整；+18/-3

关键文件：
- `tests/ci/test/test_comment_ci_command.py`（模块 comment/ci/command；类别 test；类型 test-coverage；符号 event, test_file_run_rejects_fork_prs_before_authorization, test_fork_file_run_without_contributor_tier_or_write_is_denied, test_repository_writer_dispatches_a_fork_file_run）: 测试配套；涉及符号 event, test_file_run_rejects_fork_prs_before_authorization, test_fork_file_run_without_contributor_tier_or_write_is_denied, test_repository_writer_dispatches_a_fork_file_run；包含 测试覆盖调整、控制流调整、配置键调整；+190/-42
- `.github/workflows/scripts/comment_ci_command.py`（模块 .github/workflows；类别 infra；类型 infrastructure；符号 _validate_author_associations, require_access）: 部署 / 基础设施；涉及符号 _validate_author_associations, require_access；包含 控制流调整、配置键调整、异常路径调整；+122/-16
- `.github/workflows/comment-ci-command.yml`（模块 .github/workflows；类别 infra；类型 infrastructure）: 部署 / 基础设施；包含 控制流调整、配置键调整、异常路径调整；+30/-29
- `tests/ci/test/test_file_run.py`（模块 file/run；类别 test；类型 test-coverage）: 测试配套；包含 测试覆盖调整、配置键调整；+11/-0
- `.github/workflows/run-ci-file.yml`（模块 .github/workflows；类别 infra；类型 infrastructure）: 部署 / 基础设施；包含 控制流调整、配置键调整；+18/-3

关键符号：event, test_file_run_rejects_fork_prs_before_authorization, test_fork_file_run_without_contributor_tier_or_write_is_denied, test_repository_writer_dispatches_a_fork_file_run, test_prior_contributor_dispatches_a_fork_file_run_without_a_permission_lookup, test_first_time_contributor_cannot_dispatch_a_fork_file_run, test_fork_file_run_requires_one_unique_head_pull, test_prior_contributor_dispatches_a_file_run_without_a_permission_lookup, _validate_author_associations, require_access


# 评论区精华



- 暂无高价值评论线程

# 风险与影响

- 风险：
- 影响：
 - 风险标记：暂无

# 关联脉络

- 暂无明显关联 PR