summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/git_diff_status_show.yml50
1 files changed, 50 insertions, 0 deletions
diff --git a/.github/workflows/git_diff_status_show.yml b/.github/workflows/git_diff_status_show.yml
new file mode 100644
index 0000000000..f63cafed26
--- /dev/null
+++ b/.github/workflows/git_diff_status_show.yml
@@ -0,0 +1,50 @@
+#
+# Copyright (c) 2006-2023, RT-Thread Development Team
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Change Logs:
+# Date Author Notes
+# 2025-05-15 Supper Thomas show the PR size
+#
+
+name: PR status
+
+# 这个ci主要用来显示当前的PR对于master节点上的增加的code size有多大
+on:
+ pull_request:
+ branches:
+ - master
+
+permissions:
+ contents: read # to fetch code (actions/checkout)
+
+jobs:
+ build:
+ runs-on: ubuntu-24.04
+ name: PR status show
+
+ steps:
+ - uses: actions/checkout@main
+ with:
+ fetch-depth: 0
+ - name: Set up Python
+ uses: actions/setup-python@main
+ with:
+ python-version: 3.8
+
+ - name: fetch origin
+ shell: bash
+ run: |
+ git config --global http.postBuffer 524288000
+ git remote -v
+ git fetch origin
+ git branch
+ git branch -a
+
+ - name: PR status show
+ if: ${{ success() }}
+ shell: bash
+ run: |
+ python tools/ci/git_diff_status_show.py origin/master
+