Skip to content

docs: clarify target-directory vs. target: path composition#4

Merged
mmanciop merged 1 commit into
mainfrom
docs/target-path-relative
Jul 8, 2026
Merged

docs: clarify target-directory vs. target: path composition#4
mmanciop merged 1 commit into
mainfrom
docs/target-path-relative

Conversation

@mmanciop

@mmanciop mmanciop commented Jul 8, 2026

Copy link
Copy Markdown
Member

What

Adds an explicit section to docs/action.md on how target-directory and target: compose:

  • The composite writes files to <target-repository>/<target-directory>/<target>.
  • target: values in transformations.yaml are therefore relative to target-directory, not to the target-repository root.
  • Two common mistakes are called out: repeating the directory prefix in target:, and using absolute paths.
  • The git add-scoped invariant is noted so readers understand why paths escaping target-directory don't affect the target repo.

Also tightens the inputs-table entry for target-directory to point at the new section.

Why

The end-to-end run against the throwaway topology caught a caller that wrote target: docs/e2e-fixture.md alongside target-directory: docs, producing a docs/docs/e2e-fixture.md output path. The composition rule is documented implicitly today ("target-directory is where target: paths are resolved from"), but easy to skip past when copying an existing transformations.yaml between callers.

Verification

  • pnpm run lint, format:check clean.
  • No engine or action-code changes.

Follow-up (not this PR)

Cutting v0.1.0 next. Existing callers pinning by SHA continue to work; the doc clarification lands regardless of the version tag.

…-directory

The e2e run caught a caller writing `target: docs/foo.md` alongside
`target-directory: docs` and getting a double-nested output path
(`docs/docs/foo.md`). The convention is documented implicitly ("target-
directory is where target: paths are resolved from") but easy to miss.

Adds a dedicated section explaining the composition rule with a real
example, the two common mistakes (repeating the prefix, absolute paths),
and a reminder that the target-directory scope is enforced by git add
regardless of what target: values individual entries choose.

Also tightens the inputs-table description of `target-directory` from
"Directory inside the target repo receiving the transformed files" to
call out the relative-path semantics up front.
@mmanciop mmanciop merged commit 143e4f3 into main Jul 8, 2026
1 check passed
@mmanciop mmanciop deleted the docs/target-path-relative branch July 8, 2026 20:58
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.

1 participant