@pierre/storage 0.9.0 → 0.9.2
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/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -1
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1204,12 +1204,13 @@ export class GitStorage {
|
|
|
1204
1204
|
|
|
1205
1205
|
if (baseRepo) {
|
|
1206
1206
|
if ('id' in baseRepo) {
|
|
1207
|
-
const baseRepoToken = await this.generateJWT(baseRepo.id
|
|
1207
|
+
const baseRepoToken = await this.generateJWT(`${this.options.name}/${baseRepo.id}`, {
|
|
1208
1208
|
permissions: ['git:read'],
|
|
1209
1209
|
ttl,
|
|
1210
1210
|
});
|
|
1211
1211
|
baseRepoOptions = {
|
|
1212
1212
|
provider: 'code',
|
|
1213
|
+
owner: this.options.name,
|
|
1213
1214
|
name: baseRepo.id,
|
|
1214
1215
|
operation: 'fork',
|
|
1215
1216
|
auth: { token: baseRepoToken },
|