Skip to content

Workflow Templates

Workflow templates are thin caller workflows (~20 lines each) that the bucky CLI installs into target repositories. Each caller declares its trigger event and permissions, then delegates to the corresponding shared reusable workflow in buck-bronson.

WorkflowTriggerWhat it does
bucky-dispatch.ymlrepository_dispatch (bucky-session)Agent-dispatched Claude sessions with callback (default: Claude decides; plan mode restricts to planning only)
bucky-comments.ymlissue_comment, pull_request_review_commentHandles @bucky on PRs (ad-hoc). Issue comments handled by agent service
bucky-code-review.ymlpull_requestAI code review when PRs are opened or updated

Each caller workflow:

  1. Declares trigger events and required permissions
  2. Calls the corresponding reusable workflow in buck-bronson with @v1
  3. Passes the preset input (substituted by the CLI at install time)
  4. Uses secrets: inherit to forward all repo/org secrets
name: Bucky Dispatch
on:
repository_dispatch:
types: [bucky-session]
permissions:
contents: write
pull-requests: write
issues: write
id-token: write
actions: read
jobs:
dispatch:
uses: fetch-rewards/buck-bronson/.github/workflows/bucky-dispatch.yml@v1
with:
preset: web # substituted by CLI from --preset
secrets: inherit

When the CLI generates caller workflows, it performs two substitutions:

  1. __PRESET__ placeholder — replaced with the selected preset name (web, golang, or none)
  2. @main refs — rewritten to @v{major} (e.g., @v1) on lines referencing the buck-bronson repo

By default, the CLI installs all three workflows. Use --workflows to install only specific ones:

Terminal window
# Only code review
bucky fetch-rewards/my-service --workflows bucky-code-review --preset web
# Dispatch and code review (no comment handling)
bucky fetch-rewards/my-service --workflows bucky-dispatch,bucky-code-review

All caller workflows request these permissions:

PermissionLevelPurpose
contentswriteRead/write repo files, create branches
pull-requestswriteCreate and comment on PRs
issueswriteComment on issues, manage labels
id-tokenwriteOIDC authentication for AWS Bedrock
actionsreadRead workflow run information