From 2a4c5fd2b673dee922fb0ebcbc58e22259dbd6c1 Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Fri, 17 Apr 2026 03:28:55 +1000 Subject: [PATCH] Add approval comment before auto-merge --- .gitea/workflows/validate-pr.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitea/workflows/validate-pr.yml b/.gitea/workflows/validate-pr.yml index c69ffd1..6fb6a07 100644 --- a/.gitea/workflows/validate-pr.yml +++ b/.gitea/workflows/validate-pr.yml @@ -72,6 +72,15 @@ jobs: env: PR_FILES_DIR: ../pr/plugins + - name: Post approval comment + if: success() + run: | + curl -X POST \ + -H "Authorization: token ${{ github.token }}" \ + -H "Content-Type: application/json" \ + -d '{"body":"✅ **Validation passed!** Auto-merging this pull request.\n\nAll plugin requirements have been met:\n- ✓ Valid plugin schema\n- ✓ Correct filename format\n- ✓ Author verification\n- ✓ Repository URL valid\n\nYour plugin will be available in the directory shortly!"}' \ + "http://synbox.ruv.wtf:8418/api/v1/repos/litruv/Plugin-Directory/issues/${{ github.event.pull_request.number }}/comments" + - name: Auto-merge PR if: success() run: |