fix: forward event_name from the canonical caller #1

Merged
ellen merged 1 commit from fix/caller-event-name into main 2026-07-23 11:39:53 +00:00
Member

Why

The canonical caller lives here in the template so every repo created from it already ships a working .forgejo/workflows/agent.yaml — one source of truth, no per-repo syncing.

This updates it to forward the trigger: with: { event_name: ${{ github.event_name }} }. Forgejo sets github.event_name to workflow_call inside a called reusable workflow (unlike GitHub), so the dispatcher can't otherwise tell a schedule tick from a label event. Found in the first end-to-end test (see valssi/docs → plans/agent-orchestration-test-findings.md).

Depends on

valssi-public/agent-workflows PR #14 — it adds the matching workflow_call input event_name (plus the other Forgejo event-semantics fixes). Passing with: event_name before that input exists would error, so merge PR #14 first, then this.

Note

The companion PR #14 originally carried a caller-agent.yaml copy; that has been removed there so this template file is the single source of truth for the caller.

🤖 Generated with Claude Code

## Why The canonical caller lives here in the template so every repo created from it already ships a working `.forgejo/workflows/agent.yaml` — one source of truth, no per-repo syncing. This updates it to forward the trigger: `with: { event_name: ${{ github.event_name }} }`. Forgejo sets `github.event_name` to `workflow_call` inside a called reusable workflow (unlike GitHub), so the dispatcher can't otherwise tell a schedule tick from a label event. Found in the first end-to-end test (see `valssi/docs` → `plans/agent-orchestration-test-findings.md`). ## Depends on **`valssi-public/agent-workflows` PR #14** — it adds the matching `workflow_call` input `event_name` (plus the other Forgejo event-semantics fixes). Passing `with: event_name` before that input exists would error, so **merge PR #14 first**, then this. ## Note The companion PR #14 originally carried a `caller-agent.yaml` copy; that has been removed there so this template file is the single source of truth for the caller. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix: forward event_name from the canonical caller
All checks were successful
agent / tick (pull_request) Has been skipped
agent / resolve (pull_request) Successful in 1s
agent / dev (pull_request) Has been skipped
agent / implement (pull_request) Successful in 0s
agent / dev-bounce (pull_request) Successful in 0s
agent / plan (pull_request) Has been skipped
agent / coordinate (pull_request) Has been skipped
agent / reflect (pull_request) Successful in 0s
agent / test (pull_request) Successful in 0s
agent / dispatch (pull_request) Successful in 0s
0d7dae02f5
Forgejo sets github.event_name to 'workflow_call' inside a called reusable
workflow, so the dispatcher can't distinguish a schedule tick from a label
event. Forward the real trigger via with: event_name.

Requires valssi-public/agent-workflows PR #14 (adds the matching workflow_call
input + the Forgejo event-semantics fixes) to be merged first.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ellen merged commit 310d98b091 into main 2026-07-23 11:39:53 +00:00
ellen deleted branch fix/caller-event-name 2026-07-23 11:39:53 +00:00
Sign in to join this conversation.
No reviewers
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
valssi-public/template!1
No description provided.