@strayl/coregit 0.1.1 → 0.2.1
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/branches.d.ts +6 -6
- package/dist/branches.d.ts.map +1 -1
- package/dist/branches.js +11 -10
- package/dist/branches.js.map +1 -1
- package/dist/cherry-pick.d.ts +2 -2
- package/dist/cherry-pick.d.ts.map +1 -1
- package/dist/cherry-pick.js +3 -2
- package/dist/cherry-pick.js.map +1 -1
- package/dist/commits.d.ts +4 -4
- package/dist/commits.d.ts.map +1 -1
- package/dist/commits.js +7 -6
- package/dist/commits.js.map +1 -1
- package/dist/compare.d.ts +2 -2
- package/dist/compare.d.ts.map +1 -1
- package/dist/compare.js +3 -2
- package/dist/compare.js.map +1 -1
- package/dist/diff.d.ts +2 -2
- package/dist/diff.d.ts.map +1 -1
- package/dist/diff.js +3 -2
- package/dist/diff.js.map +1 -1
- package/dist/files.d.ts +4 -4
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js +7 -6
- package/dist/files.js.map +1 -1
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/refs.d.ts +5 -5
- package/dist/refs.d.ts.map +1 -1
- package/dist/refs.js +9 -8
- package/dist/refs.js.map +1 -1
- package/dist/repo-ref.d.ts +3 -0
- package/dist/repo-ref.d.ts.map +1 -0
- package/dist/repo-ref.js +7 -0
- package/dist/repo-ref.js.map +1 -0
- package/dist/repos.d.ts +5 -5
- package/dist/repos.d.ts.map +1 -1
- package/dist/repos.js +9 -6
- package/dist/repos.js.map +1 -1
- package/dist/snapshots.d.ts +6 -6
- package/dist/snapshots.d.ts.map +1 -1
- package/dist/snapshots.js +11 -10
- package/dist/snapshots.js.map +1 -1
- package/dist/sync.d.ts +8 -0
- package/dist/sync.d.ts.map +1 -0
- package/dist/sync.js +10 -0
- package/dist/sync.js.map +1 -0
- package/dist/tokens.d.ts +13 -0
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +15 -0
- package/dist/tokens.js.map +1 -0
- package/dist/types.d.ts +81 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/webhooks.d.ts +16 -0
- package/dist/webhooks.d.ts.map +1 -0
- package/dist/webhooks.js +21 -0
- package/dist/webhooks.js.map +1 -0
- package/dist/workspace.d.ts +8 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/workspace.js +10 -0
- package/dist/workspace.js.map +1 -0
- package/package.json +1 -1
- package/src/branches.ts +12 -10
- package/src/cherry-pick.ts +4 -3
- package/src/commits.ts +8 -6
- package/src/compare.ts +4 -3
- package/src/diff.ts +4 -3
- package/src/files.ts +8 -6
- package/src/index.ts +18 -1
- package/src/refs.ts +10 -8
- package/src/repo-ref.ts +8 -0
- package/src/repos.ts +11 -8
- package/src/snapshots.ts +12 -10
- package/src/sync.ts +11 -0
- package/src/tokens.ts +18 -0
- package/src/types.ts +99 -1
- package/src/webhooks.ts +32 -0
- package/src/workspace.ts +11 -0
package/dist/snapshots.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshots.d.ts","sourceRoot":"","sources":["../src/snapshots.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,oBAAoB,EACrB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"snapshots.d.ts","sourceRoot":"","sources":["../src/snapshots.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,OAAO,EACP,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAGjB,qBAAa,eAAe;IACd,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAInF,IAAI,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAIjE,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAIlE,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAIjF,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;CAOjG"}
|
package/dist/snapshots.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
+
import { buildRepoPath } from "./repo-ref";
|
|
1
2
|
export class SnapshotsClient {
|
|
2
3
|
constructor(http) {
|
|
3
4
|
this.http = http;
|
|
4
5
|
}
|
|
5
|
-
create(
|
|
6
|
-
return this.http.request("POST",
|
|
6
|
+
create(repo, input) {
|
|
7
|
+
return this.http.request("POST", `${buildRepoPath(repo)}/snapshots`, input);
|
|
7
8
|
}
|
|
8
|
-
list(
|
|
9
|
-
return this.http.request("GET",
|
|
9
|
+
list(repo) {
|
|
10
|
+
return this.http.request("GET", `${buildRepoPath(repo)}/snapshots`);
|
|
10
11
|
}
|
|
11
|
-
get(
|
|
12
|
-
return this.http.request("GET",
|
|
12
|
+
get(repo, name) {
|
|
13
|
+
return this.http.request("GET", `${buildRepoPath(repo)}/snapshots/${encodeURIComponent(name)}`);
|
|
13
14
|
}
|
|
14
|
-
delete(
|
|
15
|
-
return this.http.request("DELETE",
|
|
15
|
+
delete(repo, name) {
|
|
16
|
+
return this.http.request("DELETE", `${buildRepoPath(repo)}/snapshots/${encodeURIComponent(name)}`);
|
|
16
17
|
}
|
|
17
|
-
restore(
|
|
18
|
-
return this.http.request("POST",
|
|
18
|
+
restore(repo, name, opts) {
|
|
19
|
+
return this.http.request("POST", `${buildRepoPath(repo)}/snapshots/${encodeURIComponent(name)}/restore`, opts);
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
//# sourceMappingURL=snapshots.js.map
|
package/dist/snapshots.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshots.js","sourceRoot":"","sources":["../src/snapshots.ts"],"names":[],"mappings":"AAUA,MAAM,OAAO,eAAe;IAC1B,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"snapshots.js","sourceRoot":"","sources":["../src/snapshots.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,OAAO,eAAe;IAC1B,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,MAAM,CAAC,IAAa,EAAE,KAA0B;QAC9C,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAW,MAAM,EAAE,GAAG,aAAa,CAAC,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;IACxF,CAAC;IAED,IAAI,CAAC,IAAa;QAChB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAuB,KAAK,EAAE,GAAG,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC5F,CAAC;IAED,GAAG,CAAC,IAAa,EAAE,IAAY;QAC7B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAW,KAAK,EAAE,GAAG,aAAa,CAAC,IAAI,CAAC,cAAc,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC5G,CAAC;IAED,MAAM,CAAC,IAAa,EAAE,IAAY;QAChC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,aAAa,CAAC,IAAI,CAAC,cAAc,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACrG,CAAC;IAED,OAAO,CAAC,IAAa,EAAE,IAAY,EAAE,IAAmB;QACtD,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CACtB,MAAM,EACN,GAAG,aAAa,CAAC,IAAI,CAAC,cAAc,kBAAkB,CAAC,IAAI,CAAC,UAAU,EACtE,IAAI,CACL,CAAC;IACJ,CAAC;CACF"}
|
package/dist/sync.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HttpClient } from "./http";
|
|
2
|
+
import type { CoregitResult, SyncInput, SyncResult, RepoRef } from "./types";
|
|
3
|
+
export declare class SyncClient {
|
|
4
|
+
private http;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
trigger(repo: RepoRef, input: SyncInput): Promise<CoregitResult<SyncResult>>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=sync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../src/sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAG7E,qBAAa,UAAU;IACT,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;CAG7E"}
|
package/dist/sync.js
ADDED
package/dist/sync.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync.js","sourceRoot":"","sources":["../src/sync.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,OAAO,UAAU;IACrB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,OAAO,CAAC,IAAa,EAAE,KAAgB;QACrC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa,MAAM,EAAE,GAAG,aAAa,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACrF,CAAC;CACF"}
|
package/dist/tokens.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { HttpClient } from "./http";
|
|
2
|
+
import type { CoregitResult, CreateTokenInput, Token, TokenListResponse } from "./types";
|
|
3
|
+
export declare class TokensClient {
|
|
4
|
+
private http;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
create(input: CreateTokenInput): Promise<CoregitResult<Token>>;
|
|
7
|
+
list(): Promise<CoregitResult<TokenListResponse>>;
|
|
8
|
+
revoke(id: string): Promise<CoregitResult<{
|
|
9
|
+
id: string;
|
|
10
|
+
revoked: boolean;
|
|
11
|
+
}>>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEzF,qBAAa,YAAY;IACX,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,MAAM,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAI9D,IAAI,IAAI,OAAO,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAIjD,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CAG7E"}
|
package/dist/tokens.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export class TokensClient {
|
|
2
|
+
constructor(http) {
|
|
3
|
+
this.http = http;
|
|
4
|
+
}
|
|
5
|
+
create(input) {
|
|
6
|
+
return this.http.request("POST", "/v1/tokens", input);
|
|
7
|
+
}
|
|
8
|
+
list() {
|
|
9
|
+
return this.http.request("GET", "/v1/tokens");
|
|
10
|
+
}
|
|
11
|
+
revoke(id) {
|
|
12
|
+
return this.http.request("DELETE", `/v1/tokens/${encodeURIComponent(id)}`);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,YAAY;IACvB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,MAAM,CAAC,KAAuB;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAQ,MAAM,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;IAED,IAAI;QACF,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAoB,KAAK,EAAE,YAAY,CAAC,CAAC;IACnE,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,cAAc,kBAAkB,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF"}
|
package/dist/types.d.ts
CHANGED
|
@@ -14,8 +14,13 @@ export interface CoregitError {
|
|
|
14
14
|
code?: string;
|
|
15
15
|
status?: number;
|
|
16
16
|
}
|
|
17
|
+
export type RepoRef = string | {
|
|
18
|
+
namespace: string;
|
|
19
|
+
slug: string;
|
|
20
|
+
};
|
|
17
21
|
export interface CreateRepoInput {
|
|
18
22
|
slug: string;
|
|
23
|
+
namespace?: string;
|
|
19
24
|
description?: string;
|
|
20
25
|
default_branch?: string;
|
|
21
26
|
visibility?: "public" | "private";
|
|
@@ -28,6 +33,7 @@ export interface UpdateRepoInput {
|
|
|
28
33
|
}
|
|
29
34
|
export interface Repo {
|
|
30
35
|
id: string;
|
|
36
|
+
namespace: string | null;
|
|
31
37
|
slug: string;
|
|
32
38
|
description: string | null;
|
|
33
39
|
default_branch: string;
|
|
@@ -131,7 +137,7 @@ export interface FileChange {
|
|
|
131
137
|
path: string;
|
|
132
138
|
content?: string;
|
|
133
139
|
encoding?: "utf-8" | "base64";
|
|
134
|
-
action?: "delete";
|
|
140
|
+
action?: "create" | "modify" | "delete";
|
|
135
141
|
}
|
|
136
142
|
export interface CreateCommitInput {
|
|
137
143
|
branch: string;
|
|
@@ -253,4 +259,78 @@ export interface PaginationOptions {
|
|
|
253
259
|
limit?: number;
|
|
254
260
|
offset?: number;
|
|
255
261
|
}
|
|
262
|
+
export interface RepoListOptions extends PaginationOptions {
|
|
263
|
+
namespace?: string;
|
|
264
|
+
}
|
|
265
|
+
export interface ExecInput {
|
|
266
|
+
command: string;
|
|
267
|
+
branch?: string;
|
|
268
|
+
ref?: string;
|
|
269
|
+
cwd?: string;
|
|
270
|
+
env?: Record<string, string>;
|
|
271
|
+
commit?: boolean;
|
|
272
|
+
commit_message?: string;
|
|
273
|
+
author?: {
|
|
274
|
+
name: string;
|
|
275
|
+
email: string;
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
export interface ExecResult {
|
|
279
|
+
stdout: string;
|
|
280
|
+
stderr: string;
|
|
281
|
+
exit_code: number;
|
|
282
|
+
changed_files: string[];
|
|
283
|
+
commit_sha: string | null;
|
|
284
|
+
execution_time_ms: number;
|
|
285
|
+
}
|
|
286
|
+
export interface SyncInput {
|
|
287
|
+
sync_id: string;
|
|
288
|
+
branch?: string;
|
|
289
|
+
}
|
|
290
|
+
export interface SyncResult {
|
|
291
|
+
synced: boolean;
|
|
292
|
+
remote_sha: string;
|
|
293
|
+
commit_sha: string | null;
|
|
294
|
+
files_changed: number;
|
|
295
|
+
deleted: number;
|
|
296
|
+
}
|
|
297
|
+
export interface CreateTokenInput {
|
|
298
|
+
name: string;
|
|
299
|
+
scopes: Record<string, string[]>;
|
|
300
|
+
expires_in: number;
|
|
301
|
+
}
|
|
302
|
+
export interface Token {
|
|
303
|
+
id: string;
|
|
304
|
+
token?: string;
|
|
305
|
+
name: string;
|
|
306
|
+
key_prefix: string;
|
|
307
|
+
scopes: Record<string, string[]>;
|
|
308
|
+
expires_at: string;
|
|
309
|
+
last_used?: string | null;
|
|
310
|
+
created_at: string;
|
|
311
|
+
}
|
|
312
|
+
export interface TokenListResponse {
|
|
313
|
+
tokens: Token[];
|
|
314
|
+
}
|
|
315
|
+
export type WebhookEvent = "push" | "repo.created" | "repo.deleted" | "branch.created" | "branch.deleted" | "*";
|
|
316
|
+
export interface CreateWebhookInput {
|
|
317
|
+
url: string;
|
|
318
|
+
events: WebhookEvent[];
|
|
319
|
+
}
|
|
320
|
+
export interface UpdateWebhookInput {
|
|
321
|
+
url?: string;
|
|
322
|
+
events?: WebhookEvent[];
|
|
323
|
+
active?: boolean;
|
|
324
|
+
}
|
|
325
|
+
export interface Webhook {
|
|
326
|
+
id: string;
|
|
327
|
+
url: string;
|
|
328
|
+
events: WebhookEvent[];
|
|
329
|
+
secret?: string;
|
|
330
|
+
active: boolean;
|
|
331
|
+
created_at?: string;
|
|
332
|
+
}
|
|
333
|
+
export interface WebhookListResponse {
|
|
334
|
+
webhooks: Webhook[];
|
|
335
|
+
}
|
|
256
336
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,CAAC,KAAK,EAAE,WAAW,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AAE5F,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;IACf,KAAK,EAAE,YAAY,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAClC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc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AAE,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { HttpClient } from "./http";
|
|
2
|
+
import type { CoregitResult, CreateWebhookInput, UpdateWebhookInput, Webhook, WebhookListResponse } from "./types";
|
|
3
|
+
export declare class WebhooksClient {
|
|
4
|
+
private http;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
create(input: CreateWebhookInput): Promise<CoregitResult<Webhook>>;
|
|
7
|
+
list(): Promise<CoregitResult<WebhookListResponse>>;
|
|
8
|
+
get(id: string): Promise<CoregitResult<Webhook>>;
|
|
9
|
+
update(id: string, input: UpdateWebhookInput): Promise<CoregitResult<{
|
|
10
|
+
updated: boolean;
|
|
11
|
+
}>>;
|
|
12
|
+
delete(id: string): Promise<CoregitResult<{
|
|
13
|
+
deleted: boolean;
|
|
14
|
+
}>>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=webhooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,KAAK,EACV,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,OAAO,EACP,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB,qBAAa,cAAc;IACb,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,MAAM,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAIlE,IAAI,IAAI,OAAO,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC;IAInD,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAIhD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAI3F,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CAGjE"}
|
package/dist/webhooks.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export class WebhooksClient {
|
|
2
|
+
constructor(http) {
|
|
3
|
+
this.http = http;
|
|
4
|
+
}
|
|
5
|
+
create(input) {
|
|
6
|
+
return this.http.request("POST", "/v1/webhooks", input);
|
|
7
|
+
}
|
|
8
|
+
list() {
|
|
9
|
+
return this.http.request("GET", "/v1/webhooks");
|
|
10
|
+
}
|
|
11
|
+
get(id) {
|
|
12
|
+
return this.http.request("GET", `/v1/webhooks/${encodeURIComponent(id)}`);
|
|
13
|
+
}
|
|
14
|
+
update(id, input) {
|
|
15
|
+
return this.http.request("PATCH", `/v1/webhooks/${encodeURIComponent(id)}`, input);
|
|
16
|
+
}
|
|
17
|
+
delete(id) {
|
|
18
|
+
return this.http.request("DELETE", `/v1/webhooks/${encodeURIComponent(id)}`);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=webhooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/webhooks.ts"],"names":[],"mappings":"AASA,MAAM,OAAO,cAAc;IACzB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,MAAM,CAAC,KAAyB;QAC9B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAU,MAAM,EAAE,cAAc,EAAE,KAAK,CAAC,CAAC;IACnE,CAAC;IAED,IAAI;QACF,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAsB,KAAK,EAAE,cAAc,CAAC,CAAC;IACvE,CAAC;IAED,GAAG,CAAC,EAAU;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAU,KAAK,EAAE,gBAAgB,kBAAkB,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACrF,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,KAAyB;QAC1C,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,gBAAgB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IACrF,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,gBAAgB,kBAAkB,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HttpClient } from "./http";
|
|
2
|
+
import type { CoregitResult, ExecInput, ExecResult, RepoRef } from "./types";
|
|
3
|
+
export declare class WorkspaceClient {
|
|
4
|
+
private http;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
exec(repo: RepoRef, input: ExecInput): Promise<CoregitResult<ExecResult>>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=workspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../src/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAG7E,qBAAa,eAAe;IACd,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;CAG1E"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { buildRepoPath } from "./repo-ref";
|
|
2
|
+
export class WorkspaceClient {
|
|
3
|
+
constructor(http) {
|
|
4
|
+
this.http = http;
|
|
5
|
+
}
|
|
6
|
+
exec(repo, input) {
|
|
7
|
+
return this.http.request("POST", `${buildRepoPath(repo)}/exec`, input);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=workspace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../src/workspace.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,OAAO,eAAe;IAC1B,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,IAAI,CAAC,IAAa,EAAE,KAAgB;QAClC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa,MAAM,EAAE,GAAG,aAAa,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACrF,CAAC;CACF"}
|
package/package.json
CHANGED
package/src/branches.ts
CHANGED
|
@@ -6,31 +6,33 @@ import type {
|
|
|
6
6
|
CreateBranchInput,
|
|
7
7
|
MergeInput,
|
|
8
8
|
MergeResult,
|
|
9
|
+
RepoRef,
|
|
9
10
|
} from "./types";
|
|
11
|
+
import { buildRepoPath } from "./repo-ref";
|
|
10
12
|
|
|
11
13
|
export class BranchesClient {
|
|
12
14
|
constructor(private http: HttpClient) {}
|
|
13
15
|
|
|
14
|
-
create(
|
|
15
|
-
return this.http.request("POST",
|
|
16
|
+
create(repo: RepoRef, input: CreateBranchInput): Promise<CoregitResult<Branch & { created: boolean }>> {
|
|
17
|
+
return this.http.request("POST", `${buildRepoPath(repo)}/branches`, input);
|
|
16
18
|
}
|
|
17
19
|
|
|
18
|
-
list(
|
|
19
|
-
return this.http.request<BranchListResponse>("GET",
|
|
20
|
+
list(repo: RepoRef): Promise<CoregitResult<BranchListResponse>> {
|
|
21
|
+
return this.http.request<BranchListResponse>("GET", `${buildRepoPath(repo)}/branches`);
|
|
20
22
|
}
|
|
21
23
|
|
|
22
|
-
get(
|
|
23
|
-
return this.http.request<Branch>("GET",
|
|
24
|
+
get(repo: RepoRef, name: string): Promise<CoregitResult<Branch>> {
|
|
25
|
+
return this.http.request<Branch>("GET", `${buildRepoPath(repo)}/branches/${encodeURIComponent(name)}`);
|
|
24
26
|
}
|
|
25
27
|
|
|
26
|
-
delete(
|
|
27
|
-
return this.http.request("DELETE",
|
|
28
|
+
delete(repo: RepoRef, name: string): Promise<CoregitResult<{ deleted: boolean; name: string }>> {
|
|
29
|
+
return this.http.request("DELETE", `${buildRepoPath(repo)}/branches/${encodeURIComponent(name)}`);
|
|
28
30
|
}
|
|
29
31
|
|
|
30
|
-
merge(
|
|
32
|
+
merge(repo: RepoRef, sourceBranch: string, opts?: MergeInput): Promise<CoregitResult<MergeResult>> {
|
|
31
33
|
return this.http.request<MergeResult>(
|
|
32
34
|
"POST",
|
|
33
|
-
|
|
35
|
+
`${buildRepoPath(repo)}/branches/${encodeURIComponent(sourceBranch)}/merge`,
|
|
34
36
|
opts,
|
|
35
37
|
);
|
|
36
38
|
}
|
package/src/cherry-pick.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { HttpClient } from "./http";
|
|
2
|
-
import type { CoregitResult, CherryPickInput, CherryPickResult } from "./types";
|
|
2
|
+
import type { CoregitResult, CherryPickInput, CherryPickResult, RepoRef } from "./types";
|
|
3
|
+
import { buildRepoPath } from "./repo-ref";
|
|
3
4
|
|
|
4
5
|
export class CherryPickClient {
|
|
5
6
|
constructor(private http: HttpClient) {}
|
|
6
7
|
|
|
7
|
-
execute(
|
|
8
|
+
execute(repo: RepoRef, input: CherryPickInput): Promise<CoregitResult<CherryPickResult>> {
|
|
8
9
|
return this.http.request<CherryPickResult>(
|
|
9
10
|
"POST",
|
|
10
|
-
|
|
11
|
+
`${buildRepoPath(repo)}/cherry-pick`,
|
|
11
12
|
input,
|
|
12
13
|
);
|
|
13
14
|
}
|
package/src/commits.ts
CHANGED
|
@@ -5,24 +5,26 @@ import type {
|
|
|
5
5
|
CommitResult,
|
|
6
6
|
CoregitResult,
|
|
7
7
|
CreateCommitInput,
|
|
8
|
+
RepoRef,
|
|
8
9
|
} from "./types";
|
|
10
|
+
import { buildRepoPath } from "./repo-ref";
|
|
9
11
|
|
|
10
12
|
export class CommitsClient {
|
|
11
13
|
constructor(private http: HttpClient) {}
|
|
12
14
|
|
|
13
|
-
create(
|
|
14
|
-
return this.http.request<CommitResult>("POST",
|
|
15
|
+
create(repo: RepoRef, input: CreateCommitInput): Promise<CoregitResult<CommitResult>> {
|
|
16
|
+
return this.http.request<CommitResult>("POST", `${buildRepoPath(repo)}/commits`, input);
|
|
15
17
|
}
|
|
16
18
|
|
|
17
|
-
list(
|
|
19
|
+
list(repo: RepoRef, opts?: { ref?: string; limit?: number }): Promise<CoregitResult<CommitListResponse>> {
|
|
18
20
|
const params = new URLSearchParams();
|
|
19
21
|
if (opts?.ref) params.set("ref", opts.ref);
|
|
20
22
|
if (opts?.limit !== undefined) params.set("limit", String(opts.limit));
|
|
21
23
|
const qs = params.toString();
|
|
22
|
-
return this.http.request<CommitListResponse>("GET",
|
|
24
|
+
return this.http.request<CommitListResponse>("GET", `${buildRepoPath(repo)}/commits${qs ? `?${qs}` : ""}`);
|
|
23
25
|
}
|
|
24
26
|
|
|
25
|
-
get(
|
|
26
|
-
return this.http.request<Commit>("GET",
|
|
27
|
+
get(repo: RepoRef, sha: string): Promise<CoregitResult<Commit>> {
|
|
28
|
+
return this.http.request<Commit>("GET", `${buildRepoPath(repo)}/commits/${sha}`);
|
|
27
29
|
}
|
|
28
30
|
}
|
package/src/compare.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { HttpClient } from "./http";
|
|
2
|
-
import type { CoregitResult, CompareResponse } from "./types";
|
|
2
|
+
import type { CoregitResult, CompareResponse, RepoRef } from "./types";
|
|
3
|
+
import { buildRepoPath } from "./repo-ref";
|
|
3
4
|
|
|
4
5
|
export class CompareClient {
|
|
5
6
|
constructor(private http: HttpClient) {}
|
|
6
7
|
|
|
7
|
-
compare(
|
|
8
|
+
compare(repo: RepoRef, base: string, head: string): Promise<CoregitResult<CompareResponse>> {
|
|
8
9
|
const params = new URLSearchParams({ base, head });
|
|
9
|
-
return this.http.request<CompareResponse>("GET",
|
|
10
|
+
return this.http.request<CompareResponse>("GET", `${buildRepoPath(repo)}/compare?${params}`);
|
|
10
11
|
}
|
|
11
12
|
}
|
package/src/diff.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { HttpClient } from "./http";
|
|
2
|
-
import type { CoregitResult, DiffResponse } from "./types";
|
|
2
|
+
import type { CoregitResult, DiffResponse, RepoRef } from "./types";
|
|
3
|
+
import { buildRepoPath } from "./repo-ref";
|
|
3
4
|
|
|
4
5
|
export class DiffClient {
|
|
5
6
|
constructor(private http: HttpClient) {}
|
|
6
7
|
|
|
7
|
-
compare(
|
|
8
|
+
compare(repo: RepoRef, base: string, head: string): Promise<CoregitResult<DiffResponse>> {
|
|
8
9
|
const params = new URLSearchParams({ base, head });
|
|
9
|
-
return this.http.request<DiffResponse>("GET",
|
|
10
|
+
return this.http.request<DiffResponse>("GET", `${buildRepoPath(repo)}/diff?${params}`);
|
|
10
11
|
}
|
|
11
12
|
}
|
package/src/files.ts
CHANGED
|
@@ -3,23 +3,25 @@ import type {
|
|
|
3
3
|
BlobResponse,
|
|
4
4
|
CoregitResult,
|
|
5
5
|
RefsResponse,
|
|
6
|
+
RepoRef,
|
|
6
7
|
TreeResponse,
|
|
7
8
|
} from "./types";
|
|
9
|
+
import { buildRepoPath } from "./repo-ref";
|
|
8
10
|
|
|
9
11
|
export class FilesClient {
|
|
10
12
|
constructor(private http: HttpClient) {}
|
|
11
13
|
|
|
12
|
-
tree(
|
|
14
|
+
tree(repo: RepoRef, ref?: string, path?: string): Promise<CoregitResult<TreeResponse>> {
|
|
13
15
|
const refPart = ref ? `/${encodeURIComponent(ref)}` : "";
|
|
14
16
|
const pathPart = path ? `/${path}` : "";
|
|
15
|
-
return this.http.request<TreeResponse>("GET",
|
|
17
|
+
return this.http.request<TreeResponse>("GET", `${buildRepoPath(repo)}/tree${refPart}${pathPart}`);
|
|
16
18
|
}
|
|
17
19
|
|
|
18
|
-
blob(
|
|
19
|
-
return this.http.request<BlobResponse>("GET",
|
|
20
|
+
blob(repo: RepoRef, ref: string, path: string): Promise<CoregitResult<BlobResponse>> {
|
|
21
|
+
return this.http.request<BlobResponse>("GET", `${buildRepoPath(repo)}/blob/${encodeURIComponent(ref)}/${path}`);
|
|
20
22
|
}
|
|
21
23
|
|
|
22
|
-
refs(
|
|
23
|
-
return this.http.request<RefsResponse>("GET",
|
|
24
|
+
refs(repo: RepoRef): Promise<CoregitResult<RefsResponse>> {
|
|
25
|
+
return this.http.request<RefsResponse>("GET", `${buildRepoPath(repo)}/refs`);
|
|
24
26
|
}
|
|
25
27
|
}
|
package/src/index.ts
CHANGED
|
@@ -9,7 +9,11 @@ import { CherryPickClient } from "./cherry-pick";
|
|
|
9
9
|
import { RefsClient } from "./refs";
|
|
10
10
|
import { SnapshotsClient } from "./snapshots";
|
|
11
11
|
import { UsageClient } from "./usage";
|
|
12
|
-
import
|
|
12
|
+
import { WorkspaceClient } from "./workspace";
|
|
13
|
+
import { SyncClient } from "./sync";
|
|
14
|
+
import { TokensClient } from "./tokens";
|
|
15
|
+
import { WebhooksClient } from "./webhooks";
|
|
16
|
+
import type { CoregitClientOptions } from "./types";
|
|
13
17
|
|
|
14
18
|
const DEFAULT_BASE_URL = "https://api.coregit.dev";
|
|
15
19
|
|
|
@@ -24,6 +28,10 @@ export class CoregitClient {
|
|
|
24
28
|
readonly refs: RefsClient;
|
|
25
29
|
readonly snapshots: SnapshotsClient;
|
|
26
30
|
readonly usage: UsageClient;
|
|
31
|
+
readonly workspace: WorkspaceClient;
|
|
32
|
+
readonly sync: SyncClient;
|
|
33
|
+
readonly tokens: TokensClient;
|
|
34
|
+
readonly webhooks: WebhooksClient;
|
|
27
35
|
|
|
28
36
|
constructor(options: CoregitClientOptions) {
|
|
29
37
|
if (!options.apiKey) {
|
|
@@ -47,6 +55,10 @@ export class CoregitClient {
|
|
|
47
55
|
this.refs = new RefsClient(http);
|
|
48
56
|
this.snapshots = new SnapshotsClient(http);
|
|
49
57
|
this.usage = new UsageClient(http);
|
|
58
|
+
this.workspace = new WorkspaceClient(http);
|
|
59
|
+
this.sync = new SyncClient(http);
|
|
60
|
+
this.tokens = new TokensClient(http);
|
|
61
|
+
this.webhooks = new WebhooksClient(http);
|
|
50
62
|
}
|
|
51
63
|
}
|
|
52
64
|
|
|
@@ -55,6 +67,7 @@ export function createCoregitClient(options: CoregitClientOptions): CoregitClien
|
|
|
55
67
|
}
|
|
56
68
|
|
|
57
69
|
export * from "./types";
|
|
70
|
+
export { buildRepoPath } from "./repo-ref";
|
|
58
71
|
export { ReposClient } from "./repos";
|
|
59
72
|
export { BranchesClient } from "./branches";
|
|
60
73
|
export { CommitsClient } from "./commits";
|
|
@@ -65,3 +78,7 @@ export { CherryPickClient } from "./cherry-pick";
|
|
|
65
78
|
export { RefsClient } from "./refs";
|
|
66
79
|
export { SnapshotsClient } from "./snapshots";
|
|
67
80
|
export { UsageClient } from "./usage";
|
|
81
|
+
export { WorkspaceClient } from "./workspace";
|
|
82
|
+
export { SyncClient } from "./sync";
|
|
83
|
+
export { TokensClient } from "./tokens";
|
|
84
|
+
export { WebhooksClient } from "./webhooks";
|
package/src/refs.ts
CHANGED
|
@@ -3,26 +3,28 @@ import type {
|
|
|
3
3
|
CoregitResult,
|
|
4
4
|
RefEntry,
|
|
5
5
|
RefListResponse,
|
|
6
|
+
RepoRef,
|
|
6
7
|
UpdateRefInput,
|
|
7
8
|
UpdateRefResult,
|
|
8
9
|
} from "./types";
|
|
10
|
+
import { buildRepoPath } from "./repo-ref";
|
|
9
11
|
|
|
10
12
|
export class RefsClient {
|
|
11
13
|
constructor(private http: HttpClient) {}
|
|
12
14
|
|
|
13
|
-
list(
|
|
14
|
-
return this.http.request<RefListResponse>("GET",
|
|
15
|
+
list(repo: RepoRef): Promise<CoregitResult<RefListResponse>> {
|
|
16
|
+
return this.http.request<RefListResponse>("GET", `${buildRepoPath(repo)}/refs`);
|
|
15
17
|
}
|
|
16
18
|
|
|
17
|
-
get(
|
|
18
|
-
return this.http.request<RefEntry>("GET",
|
|
19
|
+
get(repo: RepoRef, refPath: string): Promise<CoregitResult<RefEntry>> {
|
|
20
|
+
return this.http.request<RefEntry>("GET", `${buildRepoPath(repo)}/${refPath}`);
|
|
19
21
|
}
|
|
20
22
|
|
|
21
|
-
update(
|
|
22
|
-
return this.http.request<UpdateRefResult>("PUT",
|
|
23
|
+
update(repo: RepoRef, refPath: string, input: UpdateRefInput): Promise<CoregitResult<UpdateRefResult>> {
|
|
24
|
+
return this.http.request<UpdateRefResult>("PUT", `${buildRepoPath(repo)}/${refPath}`, input);
|
|
23
25
|
}
|
|
24
26
|
|
|
25
|
-
delete(
|
|
26
|
-
return this.http.request("DELETE",
|
|
27
|
+
delete(repo: RepoRef, refPath: string): Promise<CoregitResult<{ deleted: boolean; ref: string; sha: string }>> {
|
|
28
|
+
return this.http.request("DELETE", `${buildRepoPath(repo)}/${refPath}`);
|
|
27
29
|
}
|
|
28
30
|
}
|
package/src/repo-ref.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RepoRef } from "./types";
|
|
2
|
+
|
|
3
|
+
export function buildRepoPath(repo: RepoRef): string {
|
|
4
|
+
if (typeof repo === "string") {
|
|
5
|
+
return `/v1/repos/${encodeURIComponent(repo)}`;
|
|
6
|
+
}
|
|
7
|
+
return `/v1/repos/${encodeURIComponent(repo.namespace)}/${encodeURIComponent(repo.slug)}`;
|
|
8
|
+
}
|