pushToBridge
Push files to the git server (REQUIRES signing with privkey). This replaces the branch with one new snapshot commit. It does not keep imported GitHub history.
Instructions
Push files to the git server (REQUIRES signing with privkey). This replaces the branch with one new snapshot commit. It does not keep imported GitHub history. Optional deletedPaths removes files or whole folders on that snapshot (same as gittr UI folder delete); allowTreeShrink defaults true when deletes are present.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name | |
| files | No | Array of { path, content } objects (may be empty when only deleting) | |
| branch | No | Branch name (default: main) | |
| privkey | No | Private key for authentication (auto-loaded from .nostr-keys.json if not provided) | |
| ownerPubkey | Yes | 64-char hex pubkey | |
| deletedPaths | No | File or folder paths to remove from the tip before commit (prefix match for folders, same as gittr UI) | |
| commitMessage | No | Commit message | |
| allowTreeShrink | No | Allow tip to shrink vs previous tree. Defaults true when deletedPaths is non-empty; set false to refuse shrinks. |