Skip to content

deps: bump the serde group with 2 updates #13

deps: bump the serde group with 2 updates

deps: bump the serde group with 2 updates #13

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 }}