Skip to content

refactor(generator): remove raw setup step - #286

Merged
max-sixty merged 1 commit into
mainfrom
with
Apr 15, 2026
Merged

max-sixty merged 1 commit into
mainfrom
with

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Why

raw was a pre-with-support escape hatch for passing parameters to actions. After #284 structured steps accept every field in GitHub's step schema (uses, run, name, id, if, with, env, shell, working-directory, continue-on-error, timeout-minutes), so the only thing raw still uniquely offered was emitting multiple steps from one config entry — redundant with writing multiple [[setup]] entries.

Two paths in the schema that do almost the same thing but with subtly different semantics (the raw path can't receive the notifications if: guard) is exactly the kind of low-cardinality violation the project's CLAUDE.md warns against. Collapsing to one canonical form removes the warning codepath, the _reindent helper, and a tradeoff paragraph in the docs.

Migration

Anything previously in raw becomes either:

  1. Multiple [[setup]] entries — one per step. They render in declared order.
  2. A local composite action (.github/actions/tend-setup/action.yaml) referenced with uses. This is the better answer whenever setup has real logic (conditional shells, shared env, anchored caches) — full YAML, version-controlled, reusable.

raw in an existing config now fails at load-time with a message pointing to both paths, matching tend's "no backward compat, fail clear" stance.

Testing

  • Replaced the two test_setup_raw_* tests with one that confirms the migration hint is surfaced.
  • Full suite: 163 passed.
  • pre-commit run clean.

Not touching

Tend's own .github/workflows/tend-*.yaml — per CLAUDE.md, those track the latest published release and regenerate nightly.

🤖 Generated with Claude Code

`raw` was a pre-`with`-support escape hatch for passing parameters to
actions. Now that structured steps accept every field in GitHub's step
schema (uses, run, name, id, if, with, env, shell, working-directory,
continue-on-error, timeout-minutes), the only thing `raw` still
uniquely offered was emitting multiple steps from one config entry —
redundant with writing multiple `[[setup]]` entries.

Removing it collapses the two-path schema to one canonical form.
Anything previously in `raw` can be either split across multiple
entries or moved into a local composite action referenced with `uses:`
— the latter is the better answer whenever the setup has real logic,
since it gains version control, reuse, and full YAML expressiveness.

`raw` in an existing config now fails with a message pointing to both
migration paths, matching tend's "no backward compat, fail clear"
stance.

Net −92 lines across config, renderer, tests, and docs — the warning
path for un-guardable raw steps goes away entirely.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit ce6dbc8 into main Apr 15, 2026
5 checks passed
@max-sixty
max-sixty deleted the with branch April 15, 2026 19:10
max-sixty added a commit that referenced this pull request Apr 15, 2026
Bumps generator version to 0.0.15 and syncs lockfile.

1 commit since 0.0.14: remove `raw` setup step (#286).

Co-Authored-By: Claude <[email protected]>
@max-sixty max-sixty mentioned this pull request Apr 15, 2026
max-sixty added a commit that referenced this pull request Apr 15, 2026
Bumps generator version to 0.0.15 and syncs lockfile.

1 commit since 0.0.14: remove \`raw\` setup step (#286).

> _This was written by Claude Code on behalf of Maximilian_

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants