@pierre/storage 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +40 -39
- package/src/types.ts +8 -0
package/README.md
CHANGED
|
@@ -51,6 +51,15 @@ const forkedRepo = await store.createRepo({
|
|
|
51
51
|
},
|
|
52
52
|
});
|
|
53
53
|
// If defaultBranch is omitted, the SDK returns "main".
|
|
54
|
+
|
|
55
|
+
// Create a repo synced to a public GitHub repository without app auth
|
|
56
|
+
const publicSyncRepo = await store.createRepo({
|
|
57
|
+
baseRepo: {
|
|
58
|
+
owner: 'octocat',
|
|
59
|
+
name: 'Hello-World',
|
|
60
|
+
auth: { authType: 'public' },
|
|
61
|
+
},
|
|
62
|
+
});
|
|
54
63
|
```
|
|
55
64
|
|
|
56
65
|
### Finding a Repository
|
|
@@ -380,6 +389,9 @@ interface CreateRepoOptions {
|
|
|
380
389
|
name: string; // GitHub repository name
|
|
381
390
|
defaultBranch?: string;
|
|
382
391
|
provider?: 'github';
|
|
392
|
+
auth?: {
|
|
393
|
+
authType: 'public'; // Force public GitHub mode (no app install)
|
|
394
|
+
};
|
|
383
395
|
};
|
|
384
396
|
defaultBranch?: string; // Optional default branch name (defaults to "main")
|
|
385
397
|
}
|