Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 1 addition & 35 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,38 +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=%B $commit | head -n 1)
if [[ ! "$message" =~ ^(feat|fix|docs|style|refactor|test|chore|ci|security)(\(.+\))?:\ .+ ]]; then
echo "Invalid commit message format: $message"
echo "Expected format: type(scope): description"
echo "Allowed types: feat, fix, docs, style, refactor, test, chore, ci, security"
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

Loading