[Priority 2] Forgejo webhooks → mesh intents #6

Closed
opened 2026-03-10 20:45:33 +00:00 by Mark · 2 comments
Owner

Connect Forgejo events to mesh for git-driven workflows.

Webhooks to handle

  • on_push_main: Trigger documentation update
  • on_issue_created: Create mesh intent for task
  • on_pr_opened: Spawn reviewer agent

Implementation

  • Forgejo webhook URL: N8N or direct Redis
  • Filter: commit messages, labels
  • Action: emit mesh.intent.discovered

See

  • IMMEDIATE_INTEGRATION.md (Action 2)
Connect Forgejo events to mesh for git-driven workflows. ## Webhooks to handle - on_push_main: Trigger documentation update - on_issue_created: Create mesh intent for task - on_pr_opened: Spawn reviewer agent ## Implementation - Forgejo webhook URL: N8N or direct Redis - Filter: commit messages, labels - Action: emit mesh.intent.discovered ## See - IMMEDIATE_INTEGRATION.md (Action 2)
Author
Owner

Phase Tracking: This issue is part of Phase 2: Federation

Status: 🔴 NOT STARTED

Dependencies:

  • Depends on: #4 (N8N integration)
  • Related: #7 (Service discovery)

Use Cases:

  • Push to main → Documentation update intent
  • Issue created → Task analysis intent
  • PR opened → Code review intent
**Phase Tracking:** This issue is part of [Phase 2: Federation](https://forgejo.tail018ac4.ts.net/Mark/mesh-seed/issues/29) **Status:** 🔴 NOT STARTED **Dependencies:** - Depends on: #4 (N8N integration) - Related: #7 (Service discovery) **Use Cases:** - Push to main → Documentation update intent - Issue created → Task analysis intent - PR opened → Code review intent
Author
Owner

✅ IMPLEMENTED - Forgejo Webhooks Complete

Status: Complete and tested

Implementation:

  • runtime/forgejo_bridge.py - Flask webhook receiver
  • Port: 5002 (configurable)
  • Signature verification for security
  • IP allowlist support

Webhook Handlers:

  • on_push_main → documentation_update intent
  • on_issue_created → task_intent for issue body analysis
  • on_pr_opened → code_review intent

Events Processed:

  • Push events (branch, commits, author)
  • Issue events (title, body, labels)
  • Pull request events (diff URL, author, description)

Documentation: docs/FORGEJO_INTEGRATION.md

Tests: tests/integration/test_forgejo_bridge.py

Closing as implemented in Phase 2 Federation work.

## ✅ IMPLEMENTED - Forgejo Webhooks Complete **Status:** Complete and tested **Implementation:** - `runtime/forgejo_bridge.py` - Flask webhook receiver - Port: 5002 (configurable) - Signature verification for security - IP allowlist support **Webhook Handlers:** - `on_push_main` → documentation_update intent - `on_issue_created` → task_intent for issue body analysis - `on_pr_opened` → code_review intent **Events Processed:** - Push events (branch, commits, author) - Issue events (title, body, labels) - Pull request events (diff URL, author, description) **Documentation:** `docs/FORGEJO_INTEGRATION.md` **Tests:** `tests/integration/test_forgejo_bridge.py` Closing as implemented in Phase 2 Federation work.
Mark closed this issue 2026-03-15 01:07:25 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/mesh-seed#6
No description provided.