Repository navigation
Conversation
Previously `[[setup]]` entries were constrained to `{uses, with}`,
`{run}`, or `{raw}`. Needing `env`, `name`, `shell`, or
`working-directory` forced a drop to `raw`, which can't receive the
`if:` guard injected in `tend-notifications` — so those steps ran even
when the pre-check decided to skip, which is the same bug class that
motivated #282.
Generalize by letting a structured step carry any field from GitHub's
step schema: `uses`, `run`, `name`, `id`, `if`, `with`, `env`, `shell`,
`working-directory`, `continue-on-error`, `timeout-minutes`. Unknown
keys fail at config-load with a message listing what's allowed, so
typos surface immediately instead of at workflow-parse time.
`raw` stays as the escape hatch for emitting multiple steps from one
entry. A user-supplied `if:` on a structured step is passed through
unchanged in notifications — tend does not stack its guard on top; a
warning makes that explicit.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
tend-agent
approved these changes
Apr 15, 2026
max-sixty
added a commit
that referenced
this pull request
Apr 15, 2026
Bumps generator version to 0.0.14 and syncs lockfile. 1 commit since 0.0.13: accept any GitHub step field on setup steps (#284). Co-Authored-By: Claude <[email protected]>
Merged
max-sixty
added a commit
that referenced
this pull request
Apr 15, 2026
## Summary - Bumps generator version to 0.0.14 and syncs lockfile. - 1 commit since 0.0.13: accept any GitHub step field on setup steps (#284). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Apr 15, 2026
## 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](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Previously
[[setup]]entries were constrained to{uses, with},{run}, or{raw}. Needingenv,name,shell, orworking-directoryforced a drop toraw, which can't receive theif:guard injected intend-notifications— so those steps ran even when the pre-check decided to skip. This is the same bug class #282 fixed forwith, just narrower in scope.Solution
Let a structured
[[setup]]entry carry any field from GitHub's step schema:uses,run,name,id,if,with,env,shell,working-directory,continue-on-error,timeout-minutes. Unknown keys fail at config-load with a message listing what's allowed, so typos surface immediately instead of at workflow-parse time.rawstays as the escape hatch for emitting multiple steps from one entry. A user-suppliedif:on a structured step is passed through unchanged in notifications — tend does not stack its guard on top, and emits a warning making that explicit.Testing
env/name/shell/working-directory; user-suppliedif:preserved + warning; unknown fields rejected;envmust be a table. The existingwithtest still passes.pre-commit runclean.Not touching
Tend's own
.github/workflows/tend-*.yaml— perCLAUDE.md, those track the latest published release and regenerate nightly.🤖 Generated with Claude Code