summaryrefslogtreecommitdiff
path: root/.github/workflows/static_code_analysis.yml
diff options
context:
space:
mode:
authorCopilot <[email protected]>2025-10-30 06:18:47 +0800
committerGitHub <[email protected]>2025-10-30 06:18:47 +0800
commita10922b01b6f87d018fd639fc71fd32995a38e4b (patch)
tree3eeb3ebd48e3ba16b0563bb0a60dc475c01d0649 /.github/workflows/static_code_analysis.yml
parent6d4e2aa2feee3b9c935069a977f666d4e226adbb (diff)
[Feature] Add automated CI results comment to pull requests (#10856)
* Initial plan * Add CI results comment workflow Co-authored-by: supperthomas <[email protected]> * Improve CI results comment formatting and PR detection Co-authored-by: supperthomas <[email protected]> * Add documentation for CI results comment feature Co-authored-by: supperthomas <[email protected]> * Add ToolsCI and pkgs_test to monitored workflows Co-authored-by: supperthomas <[email protected]> * Add immediate CI status comment via direct workflow integration Co-authored-by: supperthomas <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: supperthomas <[email protected]>
Diffstat (limited to '.github/workflows/static_code_analysis.yml')
-rw-r--r--.github/workflows/static_code_analysis.yml15
1 files changed, 14 insertions, 1 deletions
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