Compare commits

...

4 Commits

Author SHA1 Message Date
14df9933c5 Merge branch 'main' into add-example-plugin-2
All checks were successful
Validate Plugin PR / validate (pull_request) Successful in 8s
2026-04-17 02:26:47 +10:00
b80ba1132b Use GITHUB_TOKEN for auto-merge 2026-04-17 02:23:54 +10:00
976e275bba Fix Gitea API merge endpoint 2026-04-17 02:22:40 +10:00
70ee9e246b Enable auto-merge for validated PRs 2026-04-17 02:16:42 +10:00

View File

@@ -27,7 +27,12 @@ jobs:
run: |
node .gitea/scripts/validate-pr.js "${{ github.event.pull_request.user.login }}" "${{ steps.changed-files.outputs.files }}"
- name: Auto-approve if valid
- name: Auto-merge PR
if: success()
run: |
echo "✅ Validation passed - PR is ready to merge"
echo "✅ Validation passed - Auto-merging PR"
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Content-Type: application/json" \
"http://synbox.ruv.wtf:8418/api/v1/repos/litruv/Plugin-Directory/pulls/${{ github.event.pull_request.number }}/merge" \
-d '{"Do":"squash","MergeTitleField":"${{ github.event.pull_request.title }}","MergeMessageField":"Auto-merged after validation","delete_branch_after_merge":true}'