diff --git a/.github/workflows/pr-review.yml b/.github/workflows/pr-review.yml new file mode 100644 index 0000000..a774204 --- /dev/null +++ b/.github/workflows/pr-review.yml @@ -0,0 +1,21 @@ +name: PR Review +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check for TODOs + run: | + if grep -r "TODO" --include="*.ts" --include="*.js" .; then + echo "::warning::Found TODO comments in changed files" + fi + - name: Require PR description + run: | + if [ -z "${{ github.event.pull_request.body }}" ]; then + echo "::error::PR description is required" + exit 1 + fi \ No newline at end of file diff --git a/test-md-file.md b/test-md-file.md new file mode 100644 index 0000000..74cae91 --- /dev/null +++ b/test-md-file.md @@ -0,0 +1,2 @@ +# test file +## Test ext \ No newline at end of file