Separate table/tree model database & Added SchemaRegionGroupNum / dataRegionGroupNum in table databases details & Optimized the message for table flush operation with database #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check TODOs and FIXMEs in Changed Files | |
on: | |
pull_request: | |
branches: | |
- master | |
- 'rel/*' | |
- "rc/*" | |
paths-ignore: | |
- 'docs/**' | |
- 'site/**' | |
# allow manually run the action: | |
workflow_dispatch: | |
jobs: | |
todo-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Check for TODOs and FIXMEs in changed files | |
run: | | |
# Fetch the target branch | |
git fetch origin $GITHUB_BASE_REF | |
# Check if there is a common ancestor | |
if git merge-base --is-ancestor origin/$GITHUB_BASE_REF HEAD; then | |
# Get the diff of the changes | |
DIFF=$(git diff origin/$GITHUB_BASE_REF...HEAD) | |
else | |
# If no common ancestor, compare with the initial commit | |
DIFF=$(git diff $(git hash-object -t tree /dev/null) HEAD) | |
fi | |
# Check the diff for TODOs | |
if echo "$DIFF" | grep -Eq '^\+.*(TODO|FIXME)'; then | |
echo "TODO or FIXME found in the changes. Please resolve it before merging." | |
# exit 1 | |
else | |
echo "No TODOs found in changed content." | |
fi |