deps(dev): bump the eslint group across 1 directory with 5 updates #6
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: 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 }} |