code_work_spawner/examples
existedinnettw eb066aa914
feat: add github/webhook-forward issue source (#13)
* feat: add github webhook-forward event source for #12

Add a channel-based GitHub issue source so long-running sessions can react to issue and issue_comment webhooks without polling. Keep --once on polling so backlog reconciliation still works and cover the new config/runtime path with tests.
2026-04-08 14:42:08 +08:00
..
README.md feat: add github/webhook-forward issue source (#13) 2026-04-08 14:42:08 +08:00
simple-gitea.yaml feat: add Gitea issue tracker support (#6) 2026-04-06 09:22:30 +08:00
simple-github.yaml feat: add github/webhook-forward issue source (#13) 2026-04-08 14:42:08 +08:00

README.md

Config Examples

The repo uses an Agent Orchestrator style YAML config with defaults and projects.

Project entries can override issueAssistant fields when a repo needs a
different prompt, mention triggers, responder chain, notification list, or
event source.

GitHub projects default to gh/polling, and Gitea projects default to
tea/polling. GitHub projects can switch their long-running runtime to
gh/webhook-forward, which starts
gh webhook forward for issues and issue_comment events while keeping
periodic polling reconciliation for startup sync and missed-event recovery.
--once still uses a single polling reconciliation cycle so existing backlog
handling keeps working.

Generated comments include both a visible prefix and footer by default so it is
clear the reply came from automation even when gh or tea is authenticated
as a human account. Those markers support template variables such as
{{tracker_login}}, {{tracker_cli}}, {{repo}}, {{project_key}},
{{issue_number}}, {{trigger}}, {{comment_tag}}, and {{fingerprint}}.
{{gh_login}} is still populated for backward compatibility. Set either
template to an empty string to disable that section.

Discord notifications are configured under issueAssistant.notifications.
Currently supported fields are:

  • type: discordWebhook
  • enabled
  • events: any of mention_detected, reply_posted, no_reply, responder_failed
  • webhookUrl
  • username
  • avatarUrl

Start from examples/simple-github.yaml for GitHub or
examples/simple-gitea.yaml for Gitea. This repo uses
dataDir, worktreeDir, and projects, and uses worktreeDir for
bug-verification worktrees.