From 41263a223b0799106f9a0bc4e8d97f767a1ddfe4 Mon Sep 17 00:00:00 2001 From: Ink-dark Date: Sat, 4 Apr 2026 19:12:08 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E7=9A=84Code=20Review=20Check=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-cd.yml | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 90e69ce..773663c 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -159,37 +159,4 @@ jobs: name: codecov-umbrella fail_ci_if_error: false - review-check: - name: Code Review Check - runs-on: ubuntu-latest - if: github.event_name == 'pull_request' - - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Check PR description - run: | - if [ -z "${{ github.event.pull_request.body }}" ]; then - echo "PR description is required" - exit 1 - fi - - - name: Check commit messages - run: | - for commit in $(git rev-list --no-merges origin/main..HEAD); do - message=$(git log -1 --pretty=%s $commit) - if [[ ! "$message" =~ ^(feat|fix|docs|style|refactor|test|chore|security)(\(.+\))?:\ .+ ]]; then - echo "Invalid commit message format: $message" - echo "Expected format: type(scope): description" - exit 1 - fi - done - - - name: Check for TODO comments - run: | - if git diff --name-only origin/main..HEAD | xargs grep -l "TODO"; then - echo "Please resolve TODO comments before merging" - exit 1 - fi +