Skip to content

feat: add run-name to shim workflows for agent-prefixed Actions filtering #6406

Description

@rh-hemartin

Problem

Both shim templates (shim-per-repo.yaml and shim-workflow-call.yaml) set name: fullsend with no run-name. Every workflow run in the Actions tab shows up as "fullsend" regardless of which agent stage it routes to. In repos with frequent activity, this makes it hard to find or filter runs for a specific agent (review, fix, triage, code, retro).

Proposed solution

Add a run-name field to the shim templates that includes the agent context derivable at trigger time. The shim cannot know the resolved stage (dispatch.yml determines that), but it has access to:

  • github.event_name and github.event.action
  • Comment body (for slash commands like /fs-review, /fs-fix)
  • Label name (for ready-to-code, ready-for-review)
  • Issue/PR number and title

A run-name expression could produce names like:

  • fullsend: /fs-review #42 (slash command)
  • fullsend: review opened #42 (PR opened)
  • fullsend: labeled ready-to-code #15 (label trigger)

This would let users filter by agent name in the GitHub Actions UI.

Files to change

  • internal/scaffold/fullsend-repo/templates/shim-per-repo.yaml
  • internal/scaffold/fullsend-repo/templates/shim-workflow-call.yaml
  • Existing enrolled repos would pick up the change on next scaffold sync

Notes

  • run-name expressions can only reference github.* and inputs.* context; no arbitrary logic. Ternary-style format()/&&/|| chains can cover the main cases.
  • The reusable-dispatch.yml and per-org dispatch.yml are workflow_call targets and don't support run-name (only top-level workflows do), so the shim is the right place for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component/dispatchWorkflow dispatch and triggersfeatureFeature-category issue awaiting human prioritizationpriority/lowNice to have, address when convenienttriagedTriaged but awaiting human prioritizationtype/featureNew capability request

    Type

    No type

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions