pushToBridge
Push files to a Git repository on the Nostr network, with optional deletion of files or folders, using private key authentication.
Instructions
Push files to git server (REQUIRES signing with privkey). Optional deletedPaths removes files or whole folders on the bare tip (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. |