Skip to content

Use git to parse root of repo#33

Merged
nialov merged 5 commits intomasterfrom
feat-check-git-for-top-level
Feb 17, 2026
Merged

Use git to parse root of repo#33
nialov merged 5 commits intomasterfrom
feat-check-git-for-top-level

Conversation

@nialov
Copy link
Owner

@nialov nialov commented Feb 9, 2026

Use git to determine repo root for workflow output; add --no-prepend-git-root flag and document usage in README/pre-commit config.

Credit: alyraffauf@9ecedc5

- Add get_git_toplevel() and use it in render.py, so rendered workflows are stored at repo root.
- Add git to runtime inputs in default.nix.
- Patch applied and codebase reformatted.

Credit to @alyraffauf for implementation:
alyraffauf@9ecedc5
- Explain in README.md how to use the new CLI flag to control output path of rendered workflows.
By default, workflow output paths are relative to git repo root. Passing
`--no-prepend-git-root` makes output path relative to cwd, enabling
scripting/test flexibility. Documented usage in README and default.nix.
…a raw.args option

- Example Nix snippet for customizing arguments to render-workflows.
@nialov nialov force-pushed the feat-check-git-for-top-level branch from 332aad7 to 7d2d5ba Compare February 17, 2026 08:02
@nialov nialov merged commit 7ed8d74 into master Feb 17, 2026
1 check passed
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