Prhub

#2718 fix(ci): App-free rerun commands at contributor tier, with fork /rerun-test under label approval

原始 PR 作者 guapisolo 合并时间 2026-08-23 17:16 文件变更 9 提交数 4 评论 1 代码增减 +434 / -108

执行摘要

实现拆解

  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 modified 7.79
.github/workflows/scripts/comment_ci_command.py .github/workflows modified 6.41
.github/workflows/comment-ci-command.yml .github/workflows modified 5.21
tests/ci/test/test_file_run.py file/run modified 4.5
.github/workflows/run-ci-file.yml .github/workflows modified 4.35

关键符号

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

分析完成后,这里会展示 LLM 生成的相对完整源码片段和详细注释。

评论区精华

没有提炼出高价值讨论线程

当前评论区没有形成足够清晰的争议点或结论,后续有更多讨论时会体现在这里。

风险与影响

关联 Issue

未识别关联 Issue

当前没有检测到明确关联的 Issue 链接,后续同步到相关引用后会出现在这里。

完整报告

参与讨论