Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions bin/pushgate.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/architecture/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ know.
|---|---|---|---|
| Hook delegator | Executable Git `pre-push` hook plus hook protocol check | `hook/pre-push` | Small by design. It should stay a delegator. |
| Installer | `install.sh [--template name]` | `install.sh`, `templates/*.yml` | Owns runner placement, hook backup, template install, and validation. |
| CLI | `main(argv, io)` and `pushgate` subcommands | `src/cli.ts`, `src/cli/*` | Public command surface for hook use. |
| CLI | `main(argv, io)` and `pushgate` subcommands | `src/cli.ts` | Public command surface for hook use. |
| Pre-push workflow | `runPrePushWorkflow(io)` | `src/workflows/pre-push.ts`, `src/workflows/local-push-gate-run.ts`, `src/workflows/pre-push-hook-context.ts` | Owns pre-push context, phase order, and warning confirmation. |
| Config | `loadConfig`, `parseConfigYaml`, `PushgateConfig` | `src/config/*`, `schemas/pushgate-config-v2.schema.json` | Converts user YAML into one normalized internal shape. |
| Path policy | `resolveChangedFiles`, `selectToolChangedFilePaths` | `src/path-policy/*`, `src/git/*` | Owns Git range, diff parsing, ignore, and live-path semantics. |
Expand Down
2 changes: 1 addition & 1 deletion docs/architecture/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ flowchart TD
|---|---|---|
| Product contract | User workflow, config examples, templates | `README.md`, `templates/*.yml` |
| Hook and install | Managed runner placement and thin hook delegation | `install.sh`, `hook/pre-push` |
| CLI and workflow | Command dispatch and pre-push phase order | `src/cli.ts`, `src/cli/*`, `src/workflows/*` |
| CLI and workflow | Command dispatch and pre-push phase order | `src/cli.ts`, `src/workflows/*` |
| Configuration | Strict v2 schema, YAML parsing, defaults, provider validation | `src/config/*`, `schemas/pushgate-config-v2.schema.json` |
| Path policy | Target-ref resolution, merge-base selection, diff parsing, ignore filtering, named ranges | `src/path-policy/*`, `src/git/*` |
| Process execution | Shared child-process mechanics and outcome policy | `src/process/*` |
Expand Down
Loading
Loading