|
|
2 месяцев назад | |
|---|---|---|
| .. | ||
| README_CI_RESULTS.md | 2 месяцев назад | |
| action_runner.yml | 8 месяцев назад | |
| action_tools.yml | 3 месяцев назад | |
| auto_assign_reviewers.yml | 3 месяцев назад | |
| auto_labeler.yml | 3 месяцев назад | |
| bsp_buildings.yml | 2 месяцев назад | |
| ci_results_comment.yml | 2 месяцев назад | |
| compile_bsp_with_drivers.yml | 3 месяцев назад | |
| doxygen.yml | 3 месяцев назад | |
| format_check.yml | 2 месяцев назад | |
| manual_bsp_build.yml | 8 месяцев назад | |
| manual_dist.yml | 8 месяцев назад | |
| manual_trigger_scons_except_STM32_all.yml | 8 месяцев назад | |
| manual_trigger_scons_fail_bsp_all.yml | 8 месяцев назад | |
| manual_trigger_update_all.yml | 8 месяцев назад | |
| pkgs_test.yml | 3 месяцев назад | |
| post_ci_status.yml | 2 месяцев назад | |
| pr_clang_format.yml | 3 месяцев назад | |
| pr_format_bot.yml | 3 месяцев назад | |
| scheduled-ci-trigger.yml | 2 месяцев назад | |
| static_code_analysis.yml | 2 месяцев назад | |
| utest_auto_run.yml | 2 месяцев назад | |
This feature automatically posts CI test results as comments on Pull Requests, making it easier for contributors and reviewers to see the status of all CI checks at a glance.
此功能自动将 CI 测试结果作为评论发布到 Pull Request 中,使贡献者和审阅者更容易一目了然地看到所有 CI 检查的状态。
The feature uses two complementary approaches to ensure CI results are always visible: 该功能使用两种互补方法来确保 CI 结果始终可见:
Each main CI workflow includes a post-ci-status job that:
每个主要 CI 工作流都包含一个 post-ci-status 作业,它:
Modified Workflows:
bsp_buildings.ymlstatic_code_analysis.ymlformat_check.ymlutest_auto_run.ymlThe ci_results_comment.yml workflow:
ci_results_comment.yml 工作流:
Automatic Updates / 自动更新: The comment is automatically created when CI workflows complete and updated as new workflows finish. / 当 CI 工作流完成时自动创建评论,并在新工作流完成时更新。
Comprehensive Summary / 全面总结: Shows the status of all major CI workflows including: / 显示所有主要 CI 工作流的状态,包括:
Status Indicators / 状态指示器:
Detailed Information / 详细信息: Expandable sections show individual job results within each workflow. / 可展开的部分显示每个工作流中的各个作业结果。
The workflow is triggered when any of the monitored CI workflows complete. / 当任何受监控的 CI 工作流完成时,将触发此工作流。
It collects the status of all workflows and jobs for the associated Pull Request. / 它收集关联 Pull Request 的所有工作流和作业的状态。
A formatted comment is posted (or updated if one already exists) with the current CI status. / 发布(或更新已存在的)格式化评论,显示当前 CI 状态。
The comment includes: 评论包括:
Overall Summary / 总体摘要: Quick statistics showing count of passed, failed, queued, in-progress, and skipped workflows. / 快速统计数据,显示通过、失败、排队、进行中和跳过的工作流数量。
Detailed Results / 详细结果: Collapsible sections for each workflow with links to individual jobs. / 每个工作流的可折叠部分,包含指向各个作业的链接。
Visibility / 可见性: Contributors can immediately see which CI checks have passed or failed without navigating to the Actions tab. / 贡献者无需导航到 Actions 选项卡即可立即查看哪些 CI 检查通过或失败。
Efficiency / 效率: Reviewers can quickly assess the CI status before reviewing the code. / 审阅者可以在审查代码之前快速评估 CI 状态。
Transparency / 透明度: All stakeholders have a clear view of the PR's CI status. / 所有利益相关者都可以清楚地了解 PR 的 CI 状态。
The workflow requires the following permissions: 工作流需要以下权限:
pull-requests: write - To create and update comments / 创建和更新评论issues: write - To post comments on PR issues / 在 PR 问题上发布评论actions: read - To read workflow run status / 读取工作流运行状态checks: read - To read check run status / 读取检查运行状态The workflow monitors the following workflows by default: 工作流默认监控以下工作流:
workflows:
- "RT-Thread BSP Static Build Check"
- "Static code analysis"
- "Check File Format and License"
- "utest_auto_run"
To add more workflows to monitor, edit the .github/workflows/ci_results_comment.yml file and add workflow names to the workflows list.
要监控更多工作流,请编辑 .github/workflows/ci_results_comment.yml 文件并将工作流名称添加到 workflows 列表中。
Contributions to improve this workflow are welcome! Please follow the standard contribution process outlined in the CONTRIBUTING.md file.
欢迎改进此工作流的贡献!请遵循 CONTRIBUTING.md 文件中概述的标准贡献流程。