https://pvzm.net/ to play [Read-only GitHub mirror] pvzm.net
modded vs pvz plants-vs-zombies plantsvszombies javascript online zombie noads jspvz pvzm game plants plant
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove review requirement, add resolve stamp conflict workflow

authored by

Clay and committed by
GitHub
117d0a00 7442108b

+29 -38
-38
.github/workflows/require-approval.yml
··· 1 - name: Require Approval 2 - 3 - on: 4 - pull_request: 5 - types: [opened, synchronize, reopened, review_requested] 6 - pull_request_review: 7 - types: [submitted, dismissed] 8 - 9 - jobs: 10 - check-approval: 11 - name: Check for PR Approval 12 - runs-on: blacksmith-2vcpu-ubuntu-2404 13 - steps: 14 - - name: Check for approved review 15 - uses: actions/github-script@v7 16 - with: 17 - script: | 18 - const reviews = await github.rest.pulls.listReviews({ 19 - owner: context.repo.owner, 20 - repo: context.repo.repo, 21 - pull_number: context.payload.pull_request.number, 22 - }); 23 - 24 - // Find the latest review state per reviewer 25 - const latestByUser = {}; 26 - for (const review of reviews.data) { 27 - if (review.state === 'APPROVED' || review.state === 'CHANGES_REQUESTED' || review.state === 'DISMISSED') { 28 - latestByUser[review.user.login] = review.state; 29 - } 30 - } 31 - 32 - const approved = Object.values(latestByUser).some(state => state === 'APPROVED'); 33 - 34 - if (!approved) { 35 - core.setFailed('This PR requires at least one approved review before merging.'); 36 - } else { 37 - core.info('PR has at least one approval. Good to go.'); 38 - }
+29
.github/workflows/resolve-stamp-conflict.yml
··· 1 + name: Auto-resolve stamp conflict 2 + 3 + on: 4 + pull_request: 5 + paths: 6 + - 'game/images/Zombies/CX/v.html' 7 + 8 + jobs: 9 + resolve: 10 + runs-on: ubuntu-latest 11 + permissions: 12 + contents: write 13 + 14 + steps: 15 + - uses: actions/checkout@v4 16 + with: 17 + ref: ${{ github.head_ref }} 18 + token: ${{ secrets.GITHUB_TOKEN }} 19 + 20 + - name: Reset version file to base branch 21 + run: | 22 + git fetch origin ${{ github.base_ref }} 23 + git checkout origin/${{ github.base_ref }} -- game/images/Zombies/CX/v.html 24 + 25 + - name: Commit if changed 26 + run: | 27 + git config user.name "github-actions[bot]" 28 + git config user.email "github-actions[bot]@users.noreply.github.com" 29 + git diff --quiet && echo "No changes" || git commit -m "chore: reset version file to base branch" && git push