-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- [ ] Breaking changes enumerated in [the release issue](https://github.com/demergent-labs/azle/issues/2053) | ||
- [ ] New documentation enumerated in [the release issue](https://github.com/demergent-labs/azle/issues/2053) | ||
- [ ] Code has been declaratized | ||
- [ ] Error handling beautiful (no unwraps or expects etc) | ||
- [ ] Code tested thoroughly |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: PR Tasks Check | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- ready_for_review | ||
- reopened | ||
- edited | ||
|
||
jobs: | ||
docs_review_check: | ||
runs-on: ubuntu-latest | ||
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 "\- \[ \]"; then | ||
echo "Error: Found unchecked tasks in the PR description. Please complete all tasks before merging." | ||
echo "Unchecked tasks:" | ||
echo "$PR_BODY" | grep "\- \[ \]" | ||
exit 1 | ||
fi | ||
echo "All tasks completed" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |