feat: add support for custom notification templates via AGENT_PROMPT_FILE_PATH
All checks were successful
Lint and Syntax Check / build (pull_request) Successful in 7s

This commit is contained in:
Space-Banane
2026-04-03 22:00:44 +02:00
parent 4144e122fa
commit cd0f7c85ed
2 changed files with 78 additions and 11 deletions

View File

@@ -20,6 +20,7 @@ The following environment variables are required for the service to function:
| `OPENCLAW_PROXY_AUTH` | (Optional) Proxy credentials in `username:password` format. |
| `DATABASE_STORAGE_NAME` | The name of the database storage to use. |
| `AGENT_USERNAME` | The Gitea username of the AI agent (e.g., `whateveryouragentisnamed`). |
| `AGENT_PROMPT_FILE` | (Optional) Path to a custom Markdown template for notifications. If not provided, a default template will be used. |
## How it works
@@ -29,6 +30,9 @@ The following environment variables are required for the service to function:
4. **Agent Notification**: If the configured `AGENT_USERNAME` is found in the assignee list, a detailed Markdown message is constructed and sent to OpenClaw.
5. **Database Sync**: The current state of assignees for the specific issue/PR is updated in the database for future reference.
## Webhook Pointers
Ensure you Webhook is pointed from YOUR and YOUR AGENTS Gitea account to the Function, or have an Gitea Wide Webhook pointed to your Function, the code will filter events that don't belong to your agent.
## Development
The project consists of: