From a10922b01b6f87d018fd639fc71fd32995a38e4b Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 30 Oct 2025 06:18:47 +0800 Subject: [Feature] Add automated CI results comment to pull requests (#10856) * Initial plan * Add CI results comment workflow Co-authored-by: supperthomas <60349489+supperthomas@users.noreply.github.com> * Improve CI results comment formatting and PR detection Co-authored-by: supperthomas <60349489+supperthomas@users.noreply.github.com> * Add documentation for CI results comment feature Co-authored-by: supperthomas <60349489+supperthomas@users.noreply.github.com> * Add ToolsCI and pkgs_test to monitored workflows Co-authored-by: supperthomas <60349489+supperthomas@users.noreply.github.com> * Add immediate CI status comment via direct workflow integration Co-authored-by: supperthomas <60349489+supperthomas@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: supperthomas <60349489+supperthomas@users.noreply.github.com> --- .github/workflows/static_code_analysis.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to '.github/workflows/static_code_analysis.yml') diff --git a/.github/workflows/static_code_analysis.yml b/.github/workflows/static_code_analysis.yml index 3a5fdb34f5..f517a309d5 100644 --- a/.github/workflows/static_code_analysis.yml +++ b/.github/workflows/static_code_analysis.yml @@ -54,4 +54,17 @@ jobs: sudo make install FILESDIR=/usr/local/share/Cppcheck cppcheck --version cd .. - python tools/ci/cpp_check.py check \ No newline at end of file + python tools/ci/cpp_check.py check + + # Post CI status to PR comment + post-ci-status: + needs: scancode_job + if: always() && github.event_name == 'pull_request' && github.repository_owner == 'RT-Thread' + uses: ./.github/workflows/post_ci_status.yml + with: + workflow_name: "Static code analysis" + workflow_status: ${{ needs.scancode_job.result }} + pr_number: ${{ github.event.pull_request.number }} + permissions: + pull-requests: write + issues: write \ No newline at end of file -- cgit v1.3.1