create /gitea-webhook entry point #1
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What You Need to Do
Edit the container's source code (the src/pr_reviewer/main.py file) and add the endpoint shown above.
Rebuild the Docker image and deploy it again with the new port mapping.
sett environment variables in the container:
GITEA_URL = your Gitea instance base URL
GITEA_TOKEN = a personal access token with read:repository scope
GITEA_SECRET = the webhook secret you set in Gitea (optional but recommended)
Set the Gitea webhook target URL to http://192.168.178.160:30001/api/v1/gitea-webhook.
Now every PR event will be directly processed by the container, fetching the diffs and running the three parallel reviews – no extra adapter needed.
After the review finishes, you may also want to post the result as a comment on the PR. That would be a small addition to the endpoint: use the Gitea API to create an issue comment after run_review_flow returns. Let me know if you'd like that extension as well.
Code "Above"