Skip to content

Update target to es2024, use tsconfigs for typechecks, and run type checks at the top level (breaking changes) #2730

Update target to es2024, use tsconfigs for typechecks, and run type checks at the top level (breaking changes)

Update target to es2024, use tsconfigs for typechecks, and run type checks at the top level (breaking changes) #2730

name: PR Checkboxes
on:
pull_request:
types:
- opened
- synchronize
- ready_for_review
- reopened
- edited
jobs:
pr_tasks_check:
name: All PR checkboxes marked completed
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- name: All tasks completed
run: |
# Get PR data including body and labels
PR_DATA=$(gh pr view ${{ github.event.pull_request.number }} --json body)
# Extract PR body
PR_BODY=$(echo "$PR_DATA" | jq -r .body)
# Check for unchecked tasks (- [ ])
if echo "$PR_BODY" | grep -q "\s*-\s*\[ \]"; then
echo "Error: The following checkboxes are not marked as completed:"
echo "$PR_BODY" | grep "\s*-\s*\[ \]"
exit 1
fi
echo "All tasks completed"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}