sailfork 0.3.5 → 0.4.0
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/AGENTS.md +7 -0
- package/dist/index.cjs +134 -1
- package/dist/index.js +134 -1
- package/dist/tools.cjs +348 -4
- package/dist/tools.js +348 -4
- package/dist/types/core/version.d.ts +1 -1
- package/dist/types/generated/api.d.ts +56 -0
- package/dist/types/generated/index.d.ts +1 -1
- package/dist/types/generated/ops.d.ts +91 -0
- package/dist/types/generated/types.d.ts +220 -4
- package/dist/types-cjs/core/version.d.ts +1 -1
- package/dist/types-cjs/generated/api.d.ts +56 -0
- package/dist/types-cjs/generated/index.d.ts +1 -1
- package/dist/types-cjs/generated/ops.d.ts +91 -0
- package/dist/types-cjs/generated/types.d.ts +220 -4
- package/llms.txt +7 -0
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -188,13 +188,16 @@ const repo = sf.repo("acme/api");
|
|
|
188
188
|
- `sf.pulls.autoMerge(input)`: Show a pull request's auto-merge: whether it is on, whether it waits in the merge queue and why it has not merged yet. Scope `repo:read`, read, retry safe.
|
|
189
189
|
- `sf.pulls.autoMergeDisable(input)`: Turn auto-merge off for a pull request, and take it out of the merge queue. Scope `repo:write`, write, retry idempotent.
|
|
190
190
|
- `sf.pulls.autoMergeEnable(input)`: Turn auto-merge on: the pull request merges, as the caller, once its checks pass and the merge rules allow it, while its branch is still at `expectedHead`. When it can merge at once it does, and the answer says `merged`. Scope `repo:merge`, write, retry idempotent. Can be held for a person.
|
|
191
|
+
- `sf.pulls.branchDiff(input)`: Show the diff of the pull request from a branch: the open one, else the newest closed or merged one. Scope `repo:read`, read, retry safe.
|
|
191
192
|
- `sf.pulls.checks(input)`: Show what a pull request's checks add up to: the CI jobs of the newest run of each workflow on its head, then the latest check run of each name and reporter. `waited` lets the verdict tell a first run that has not started from one that never will. Scope `repo:read`, read, retry safe.
|
|
192
193
|
- `sf.pulls.comment(input)`: Comment on a pull request: reply in a thread, or start one on a line of the diff. Scope `repo:write`, write, retry idempotent.
|
|
193
194
|
- `sf.pulls.conflicts(input)`: The files that keep a pull request's branch from taking its base, at both branches' current tips, each text file with conflict markers around every conflict. `files` is empty when it merges cleanly. Scope `repo:read`, read, retry safe.
|
|
194
195
|
- `sf.pulls.create(input)`: Open a pull request from a branch into a base branch. Opening one for a branch that already has an open one answers 409. Scope `repo:write`, write, retry idempotent.
|
|
195
196
|
- `sf.pulls.deleteComment(input)`: Delete a comment on a pull request. Scope `repo:write`, destructive, retry idempotent.
|
|
197
|
+
- `sf.pulls.diff(input)`: Show what a pull request changes: the commits it adds and its diff against the merge base, with totals. A merged one answers the diff it merged. A signed-out visitor sees a public repository's. Scope `repo:read`, read, retry safe.
|
|
196
198
|
- `sf.pulls.dismiss(input)`: Dismiss the reviews that approved or asked for changes on a pull request. Scope `repo:write`, write, retry idempotent.
|
|
197
199
|
- `sf.pulls.editComment(input)`: Edit a comment on a pull request. `at` is the comment's timestamp, which keeps an edit from landing on another comment when the thread changed. Scope `repo:write`, write, retry idempotent.
|
|
200
|
+
- `sf.pulls.forCommit(input)`: List the pull requests whose commits include a commit, among the newest few hundred of any state. Scope `repo:read`, read, retry safe.
|
|
198
201
|
- `sf.pulls.get(input)`: Show a pull request with its threads, whether it merges cleanly and the merge rules it does not meet yet. Scope `repo:read`, read, retry safe.
|
|
199
202
|
- `sf.pulls.hideComment(input)`: Hide a comment on a pull request behind a reason, or show it again when no reason is sent. Scope `repo:write`, write, retry idempotent.
|
|
200
203
|
- `sf.pulls.list(input)`: List a repository's pull requests, newest first. A signed-out visitor sees a public repository's. Scope `repo:read`, read, retry safe.
|
|
@@ -203,11 +206,15 @@ const repo = sf.repo("acme/api");
|
|
|
203
206
|
- `sf.pulls.resolveThread(input)`: Resolve a review thread, or reopen it. Scope `repo:write`, write, retry idempotent.
|
|
204
207
|
- `sf.pulls.review(input)`: Approve a pull request, ask for changes or comment, with line comments that land with it or not at all. Answers 409 when `commit` names a head the branch has moved past. Scope `repo:write`, write, retry idempotent.
|
|
205
208
|
- `sf.pulls.stack(input)`: Show the whole tree of pull requests a pull request belongs to, root first, depth first. Scope `repo:read`, read, retry safe.
|
|
209
|
+
- `sf.pulls.touching(input)`: List the pull requests that change a file, or a folder when `path` ends in `/`, newest first. Only the newest few hundred pull requests of the chosen states are searched. Scope `repo:read`, read, retry safe.
|
|
206
210
|
- `sf.pulls.update(input)`: Edit a pull request: its title, description, state (close, reopen, mark ready or back to draft), reviewer, base or lock. Only the fields sent change. Scope `repo:write`, write, retry idempotent.
|
|
207
211
|
- `sf.pulls.updateBranch(input)`: Merge the base branch into a pull request's branch on the server, for a merge refused as behind. `updated` is false when the branch already had the base. Scope `repo:write`, write, retry idempotent.
|
|
208
212
|
|
|
209
213
|
### repos
|
|
210
214
|
|
|
215
|
+
- `sf.repos.commit(input)`: Show a commit: its message, author, parent and child, and its changes as a diff of the first files in path order. Scope `repo:read`, read, retry safe.
|
|
216
|
+
- `sf.repos.commits(input)`: List the commits of a branch, tag or commit, newest first, or the history of one path with `path`. A signed-out visitor sees a public repository's. Scope `repo:read`, read, retry safe.
|
|
217
|
+
- `sf.repos.compare(input)`: Compare two branches, tags or commits: the commits `head` adds since their merge base and its diff. `spec` is `{base}...{head}`. A signed-out visitor sees a public repository's. Scope `repo:read`, read, retry safe.
|
|
211
218
|
- `sf.repos.create(input)`: Create a repository for the caller, or in an org they belong to. Scope `repo:admin`, write, retry once.
|
|
212
219
|
- `sf.repos.get(input)`: Show a repository: description, visibility, default branch, branches, clone URLs and the caller's access (`read`, `write` or `admin`). A signed-out visitor reads a public repository. An old handle of a renamed owner answers 301 with the current address. Scope `repo:read`, read, retry safe.
|
|
213
220
|
- `sf.repos.list(input)`: List the repositories the caller can reach, newest first: their own, the ones they collaborate on and their orgs'. Scope `repo:read`, read, retry safe.
|
package/dist/index.cjs
CHANGED
|
@@ -606,7 +606,7 @@ async function resolveToken(host, option) {
|
|
|
606
606
|
}
|
|
607
607
|
|
|
608
608
|
// src/core/version.ts
|
|
609
|
-
var VERSION = "0.
|
|
609
|
+
var VERSION = "0.4.0";
|
|
610
610
|
var API_VERSION = "2026-12-01";
|
|
611
611
|
|
|
612
612
|
// src/core/client.ts
|
|
@@ -2435,6 +2435,19 @@ var ops = {
|
|
|
2435
2435
|
long: false,
|
|
2436
2436
|
paginated: false
|
|
2437
2437
|
},
|
|
2438
|
+
"pulls.branch_diff": {
|
|
2439
|
+
id: "pulls.branch_diff",
|
|
2440
|
+
method: "GET",
|
|
2441
|
+
path: "/api/repos/{owner}/{repo}/pulls/compare",
|
|
2442
|
+
pathParams: ["owner", "repo"],
|
|
2443
|
+
queryParams: ["branch", "lines"],
|
|
2444
|
+
bodyParams: [],
|
|
2445
|
+
effect: "read",
|
|
2446
|
+
retry: "safe",
|
|
2447
|
+
held: false,
|
|
2448
|
+
long: false,
|
|
2449
|
+
paginated: false
|
|
2450
|
+
},
|
|
2438
2451
|
"pulls.checks": {
|
|
2439
2452
|
id: "pulls.checks",
|
|
2440
2453
|
method: "GET",
|
|
@@ -2500,6 +2513,19 @@ var ops = {
|
|
|
2500
2513
|
long: false,
|
|
2501
2514
|
paginated: false
|
|
2502
2515
|
},
|
|
2516
|
+
"pulls.diff": {
|
|
2517
|
+
id: "pulls.diff",
|
|
2518
|
+
method: "GET",
|
|
2519
|
+
path: "/api/repos/{owner}/{repo}/pulls/{number}/compare",
|
|
2520
|
+
pathParams: ["owner", "repo", "number"],
|
|
2521
|
+
queryParams: ["lines"],
|
|
2522
|
+
bodyParams: [],
|
|
2523
|
+
effect: "read",
|
|
2524
|
+
retry: "safe",
|
|
2525
|
+
held: false,
|
|
2526
|
+
long: false,
|
|
2527
|
+
paginated: false
|
|
2528
|
+
},
|
|
2503
2529
|
"pulls.dismiss": {
|
|
2504
2530
|
id: "pulls.dismiss",
|
|
2505
2531
|
method: "POST",
|
|
@@ -2526,6 +2552,19 @@ var ops = {
|
|
|
2526
2552
|
long: false,
|
|
2527
2553
|
paginated: false
|
|
2528
2554
|
},
|
|
2555
|
+
"pulls.for_commit": {
|
|
2556
|
+
id: "pulls.for_commit",
|
|
2557
|
+
method: "GET",
|
|
2558
|
+
path: "/api/repos/{owner}/{repo}/commit/{sha}/pulls",
|
|
2559
|
+
pathParams: ["owner", "repo", "sha"],
|
|
2560
|
+
queryParams: [],
|
|
2561
|
+
bodyParams: [],
|
|
2562
|
+
effect: "read",
|
|
2563
|
+
retry: "safe",
|
|
2564
|
+
held: false,
|
|
2565
|
+
long: false,
|
|
2566
|
+
paginated: false
|
|
2567
|
+
},
|
|
2529
2568
|
"pulls.get": {
|
|
2530
2569
|
id: "pulls.get",
|
|
2531
2570
|
method: "GET",
|
|
@@ -2630,6 +2669,19 @@ var ops = {
|
|
|
2630
2669
|
long: false,
|
|
2631
2670
|
paginated: false
|
|
2632
2671
|
},
|
|
2672
|
+
"pulls.touching": {
|
|
2673
|
+
id: "pulls.touching",
|
|
2674
|
+
method: "GET",
|
|
2675
|
+
path: "/api/repos/{owner}/{repo}/pulls/touching",
|
|
2676
|
+
pathParams: ["owner", "repo"],
|
|
2677
|
+
queryParams: ["path", "state", "limit"],
|
|
2678
|
+
bodyParams: [],
|
|
2679
|
+
effect: "read",
|
|
2680
|
+
retry: "safe",
|
|
2681
|
+
held: false,
|
|
2682
|
+
long: false,
|
|
2683
|
+
paginated: false
|
|
2684
|
+
},
|
|
2633
2685
|
"pulls.update": {
|
|
2634
2686
|
id: "pulls.update",
|
|
2635
2687
|
method: "PATCH",
|
|
@@ -2656,6 +2708,45 @@ var ops = {
|
|
|
2656
2708
|
long: false,
|
|
2657
2709
|
paginated: false
|
|
2658
2710
|
},
|
|
2711
|
+
"repos.commit": {
|
|
2712
|
+
id: "repos.commit",
|
|
2713
|
+
method: "GET",
|
|
2714
|
+
path: "/api/repos/{owner}/{repo}/commit/{sha}",
|
|
2715
|
+
pathParams: ["owner", "repo", "sha"],
|
|
2716
|
+
queryParams: [],
|
|
2717
|
+
bodyParams: [],
|
|
2718
|
+
effect: "read",
|
|
2719
|
+
retry: "safe",
|
|
2720
|
+
held: false,
|
|
2721
|
+
long: false,
|
|
2722
|
+
paginated: false
|
|
2723
|
+
},
|
|
2724
|
+
"repos.commits": {
|
|
2725
|
+
id: "repos.commits",
|
|
2726
|
+
method: "GET",
|
|
2727
|
+
path: "/api/repos/{owner}/{repo}/commits",
|
|
2728
|
+
pathParams: ["owner", "repo"],
|
|
2729
|
+
queryParams: ["ref", "path", "limit", "skip", "cursor", "envelope"],
|
|
2730
|
+
bodyParams: [],
|
|
2731
|
+
effect: "read",
|
|
2732
|
+
retry: "safe",
|
|
2733
|
+
held: false,
|
|
2734
|
+
long: false,
|
|
2735
|
+
paginated: false
|
|
2736
|
+
},
|
|
2737
|
+
"repos.compare": {
|
|
2738
|
+
id: "repos.compare",
|
|
2739
|
+
method: "GET",
|
|
2740
|
+
path: "/api/repos/{owner}/{repo}/compare/{*spec}",
|
|
2741
|
+
pathParams: ["owner", "repo", "spec"],
|
|
2742
|
+
queryParams: ["lines", "from", "count"],
|
|
2743
|
+
bodyParams: [],
|
|
2744
|
+
effect: "read",
|
|
2745
|
+
retry: "safe",
|
|
2746
|
+
held: false,
|
|
2747
|
+
long: false,
|
|
2748
|
+
paginated: false
|
|
2749
|
+
},
|
|
2659
2750
|
"repos.create": {
|
|
2660
2751
|
id: "repos.create",
|
|
2661
2752
|
method: "POST",
|
|
@@ -3341,6 +3432,9 @@ class PullsResource {
|
|
|
3341
3432
|
autoMergeEnable(input, opts) {
|
|
3342
3433
|
return this.core.request(ops["pulls.auto_merge_enable"], input, opts);
|
|
3343
3434
|
}
|
|
3435
|
+
branchDiff(input, opts) {
|
|
3436
|
+
return this.core.request(ops["pulls.branch_diff"], input, opts);
|
|
3437
|
+
}
|
|
3344
3438
|
checks(input, opts) {
|
|
3345
3439
|
return this.core.request(ops["pulls.checks"], input, opts);
|
|
3346
3440
|
}
|
|
@@ -3357,12 +3451,18 @@ class PullsResource {
|
|
|
3357
3451
|
deleteComment(input, opts) {
|
|
3358
3452
|
return this.core.request(ops["pulls.delete_comment"], input, opts);
|
|
3359
3453
|
}
|
|
3454
|
+
diff(input, opts) {
|
|
3455
|
+
return this.core.request(ops["pulls.diff"], input, opts);
|
|
3456
|
+
}
|
|
3360
3457
|
dismiss(input, opts) {
|
|
3361
3458
|
return this.core.request(ops["pulls.dismiss"], input, opts);
|
|
3362
3459
|
}
|
|
3363
3460
|
editComment(input, opts) {
|
|
3364
3461
|
return this.core.request(ops["pulls.edit_comment"], input, opts);
|
|
3365
3462
|
}
|
|
3463
|
+
forCommit(input, opts) {
|
|
3464
|
+
return this.core.request(ops["pulls.for_commit"], input, opts);
|
|
3465
|
+
}
|
|
3366
3466
|
get(input, opts) {
|
|
3367
3467
|
return this.core.request(ops["pulls.get"], input, opts);
|
|
3368
3468
|
}
|
|
@@ -3387,6 +3487,9 @@ class PullsResource {
|
|
|
3387
3487
|
stack(input, opts) {
|
|
3388
3488
|
return this.core.request(ops["pulls.stack"], input, opts);
|
|
3389
3489
|
}
|
|
3490
|
+
touching(input, opts) {
|
|
3491
|
+
return this.core.request(ops["pulls.touching"], input, opts);
|
|
3492
|
+
}
|
|
3390
3493
|
update(input, opts) {
|
|
3391
3494
|
return this.core.request(ops["pulls.update"], input, opts);
|
|
3392
3495
|
}
|
|
@@ -3400,6 +3503,15 @@ class ReposResource {
|
|
|
3400
3503
|
constructor(core) {
|
|
3401
3504
|
this.core = core;
|
|
3402
3505
|
}
|
|
3506
|
+
commit(input, opts) {
|
|
3507
|
+
return this.core.request(ops["repos.commit"], input, opts);
|
|
3508
|
+
}
|
|
3509
|
+
commits(input, opts) {
|
|
3510
|
+
return this.core.request(ops["repos.commits"], input, opts);
|
|
3511
|
+
}
|
|
3512
|
+
compare(input, opts) {
|
|
3513
|
+
return this.core.request(ops["repos.compare"], input, opts);
|
|
3514
|
+
}
|
|
3403
3515
|
create(input, opts) {
|
|
3404
3516
|
return this.core.request(ops["repos.create"], input, opts);
|
|
3405
3517
|
}
|
|
@@ -3670,6 +3782,9 @@ class PullRequest {
|
|
|
3670
3782
|
deleteComment(input, opts) {
|
|
3671
3783
|
return this.core.request(ops["pulls.delete_comment"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"], number: this.bound["number"] }, opts);
|
|
3672
3784
|
}
|
|
3785
|
+
diff(input = {}, opts) {
|
|
3786
|
+
return this.core.request(ops["pulls.diff"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"], number: this.bound["number"] }, opts);
|
|
3787
|
+
}
|
|
3673
3788
|
dismiss(input = {}, opts) {
|
|
3674
3789
|
return this.core.request(ops["pulls.dismiss"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"], number: this.bound["number"] }, opts);
|
|
3675
3790
|
}
|
|
@@ -3959,13 +4074,22 @@ class RepoPullsResource {
|
|
|
3959
4074
|
this.core = core;
|
|
3960
4075
|
this.bound = bound;
|
|
3961
4076
|
}
|
|
4077
|
+
branchDiff(input, opts) {
|
|
4078
|
+
return this.core.request(ops["pulls.branch_diff"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
4079
|
+
}
|
|
3962
4080
|
async create(input, opts) {
|
|
3963
4081
|
const out = await this.core.request(ops["pulls.create"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3964
4082
|
return new PullRequest(this.core, { number: out["number"], owner: this.bound["owner"], repo: this.bound["repo"] });
|
|
3965
4083
|
}
|
|
4084
|
+
forCommit(input, opts) {
|
|
4085
|
+
return this.core.request(ops["pulls.for_commit"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
4086
|
+
}
|
|
3966
4087
|
list(input = {}, opts) {
|
|
3967
4088
|
return this.core.request(ops["pulls.list"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3968
4089
|
}
|
|
4090
|
+
touching(input, opts) {
|
|
4091
|
+
return this.core.request(ops["pulls.touching"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
4092
|
+
}
|
|
3969
4093
|
}
|
|
3970
4094
|
|
|
3971
4095
|
class RepoReposResource {
|
|
@@ -3975,6 +4099,15 @@ class RepoReposResource {
|
|
|
3975
4099
|
this.core = core;
|
|
3976
4100
|
this.bound = bound;
|
|
3977
4101
|
}
|
|
4102
|
+
commit(input, opts) {
|
|
4103
|
+
return this.core.request(ops["repos.commit"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
4104
|
+
}
|
|
4105
|
+
commits(input = {}, opts) {
|
|
4106
|
+
return this.core.request(ops["repos.commits"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
4107
|
+
}
|
|
4108
|
+
compare(input, opts) {
|
|
4109
|
+
return this.core.request(ops["repos.compare"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
4110
|
+
}
|
|
3978
4111
|
get(input = {}, opts) {
|
|
3979
4112
|
return this.core.request(ops["repos.get"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3980
4113
|
}
|
package/dist/index.js
CHANGED
|
@@ -500,7 +500,7 @@ async function resolveToken(host, option) {
|
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
// src/core/version.ts
|
|
503
|
-
var VERSION = "0.
|
|
503
|
+
var VERSION = "0.4.0";
|
|
504
504
|
var API_VERSION = "2026-12-01";
|
|
505
505
|
|
|
506
506
|
// src/core/client.ts
|
|
@@ -2329,6 +2329,19 @@ var ops = {
|
|
|
2329
2329
|
long: false,
|
|
2330
2330
|
paginated: false
|
|
2331
2331
|
},
|
|
2332
|
+
"pulls.branch_diff": {
|
|
2333
|
+
id: "pulls.branch_diff",
|
|
2334
|
+
method: "GET",
|
|
2335
|
+
path: "/api/repos/{owner}/{repo}/pulls/compare",
|
|
2336
|
+
pathParams: ["owner", "repo"],
|
|
2337
|
+
queryParams: ["branch", "lines"],
|
|
2338
|
+
bodyParams: [],
|
|
2339
|
+
effect: "read",
|
|
2340
|
+
retry: "safe",
|
|
2341
|
+
held: false,
|
|
2342
|
+
long: false,
|
|
2343
|
+
paginated: false
|
|
2344
|
+
},
|
|
2332
2345
|
"pulls.checks": {
|
|
2333
2346
|
id: "pulls.checks",
|
|
2334
2347
|
method: "GET",
|
|
@@ -2394,6 +2407,19 @@ var ops = {
|
|
|
2394
2407
|
long: false,
|
|
2395
2408
|
paginated: false
|
|
2396
2409
|
},
|
|
2410
|
+
"pulls.diff": {
|
|
2411
|
+
id: "pulls.diff",
|
|
2412
|
+
method: "GET",
|
|
2413
|
+
path: "/api/repos/{owner}/{repo}/pulls/{number}/compare",
|
|
2414
|
+
pathParams: ["owner", "repo", "number"],
|
|
2415
|
+
queryParams: ["lines"],
|
|
2416
|
+
bodyParams: [],
|
|
2417
|
+
effect: "read",
|
|
2418
|
+
retry: "safe",
|
|
2419
|
+
held: false,
|
|
2420
|
+
long: false,
|
|
2421
|
+
paginated: false
|
|
2422
|
+
},
|
|
2397
2423
|
"pulls.dismiss": {
|
|
2398
2424
|
id: "pulls.dismiss",
|
|
2399
2425
|
method: "POST",
|
|
@@ -2420,6 +2446,19 @@ var ops = {
|
|
|
2420
2446
|
long: false,
|
|
2421
2447
|
paginated: false
|
|
2422
2448
|
},
|
|
2449
|
+
"pulls.for_commit": {
|
|
2450
|
+
id: "pulls.for_commit",
|
|
2451
|
+
method: "GET",
|
|
2452
|
+
path: "/api/repos/{owner}/{repo}/commit/{sha}/pulls",
|
|
2453
|
+
pathParams: ["owner", "repo", "sha"],
|
|
2454
|
+
queryParams: [],
|
|
2455
|
+
bodyParams: [],
|
|
2456
|
+
effect: "read",
|
|
2457
|
+
retry: "safe",
|
|
2458
|
+
held: false,
|
|
2459
|
+
long: false,
|
|
2460
|
+
paginated: false
|
|
2461
|
+
},
|
|
2423
2462
|
"pulls.get": {
|
|
2424
2463
|
id: "pulls.get",
|
|
2425
2464
|
method: "GET",
|
|
@@ -2524,6 +2563,19 @@ var ops = {
|
|
|
2524
2563
|
long: false,
|
|
2525
2564
|
paginated: false
|
|
2526
2565
|
},
|
|
2566
|
+
"pulls.touching": {
|
|
2567
|
+
id: "pulls.touching",
|
|
2568
|
+
method: "GET",
|
|
2569
|
+
path: "/api/repos/{owner}/{repo}/pulls/touching",
|
|
2570
|
+
pathParams: ["owner", "repo"],
|
|
2571
|
+
queryParams: ["path", "state", "limit"],
|
|
2572
|
+
bodyParams: [],
|
|
2573
|
+
effect: "read",
|
|
2574
|
+
retry: "safe",
|
|
2575
|
+
held: false,
|
|
2576
|
+
long: false,
|
|
2577
|
+
paginated: false
|
|
2578
|
+
},
|
|
2527
2579
|
"pulls.update": {
|
|
2528
2580
|
id: "pulls.update",
|
|
2529
2581
|
method: "PATCH",
|
|
@@ -2550,6 +2602,45 @@ var ops = {
|
|
|
2550
2602
|
long: false,
|
|
2551
2603
|
paginated: false
|
|
2552
2604
|
},
|
|
2605
|
+
"repos.commit": {
|
|
2606
|
+
id: "repos.commit",
|
|
2607
|
+
method: "GET",
|
|
2608
|
+
path: "/api/repos/{owner}/{repo}/commit/{sha}",
|
|
2609
|
+
pathParams: ["owner", "repo", "sha"],
|
|
2610
|
+
queryParams: [],
|
|
2611
|
+
bodyParams: [],
|
|
2612
|
+
effect: "read",
|
|
2613
|
+
retry: "safe",
|
|
2614
|
+
held: false,
|
|
2615
|
+
long: false,
|
|
2616
|
+
paginated: false
|
|
2617
|
+
},
|
|
2618
|
+
"repos.commits": {
|
|
2619
|
+
id: "repos.commits",
|
|
2620
|
+
method: "GET",
|
|
2621
|
+
path: "/api/repos/{owner}/{repo}/commits",
|
|
2622
|
+
pathParams: ["owner", "repo"],
|
|
2623
|
+
queryParams: ["ref", "path", "limit", "skip", "cursor", "envelope"],
|
|
2624
|
+
bodyParams: [],
|
|
2625
|
+
effect: "read",
|
|
2626
|
+
retry: "safe",
|
|
2627
|
+
held: false,
|
|
2628
|
+
long: false,
|
|
2629
|
+
paginated: false
|
|
2630
|
+
},
|
|
2631
|
+
"repos.compare": {
|
|
2632
|
+
id: "repos.compare",
|
|
2633
|
+
method: "GET",
|
|
2634
|
+
path: "/api/repos/{owner}/{repo}/compare/{*spec}",
|
|
2635
|
+
pathParams: ["owner", "repo", "spec"],
|
|
2636
|
+
queryParams: ["lines", "from", "count"],
|
|
2637
|
+
bodyParams: [],
|
|
2638
|
+
effect: "read",
|
|
2639
|
+
retry: "safe",
|
|
2640
|
+
held: false,
|
|
2641
|
+
long: false,
|
|
2642
|
+
paginated: false
|
|
2643
|
+
},
|
|
2553
2644
|
"repos.create": {
|
|
2554
2645
|
id: "repos.create",
|
|
2555
2646
|
method: "POST",
|
|
@@ -3235,6 +3326,9 @@ class PullsResource {
|
|
|
3235
3326
|
autoMergeEnable(input, opts) {
|
|
3236
3327
|
return this.core.request(ops["pulls.auto_merge_enable"], input, opts);
|
|
3237
3328
|
}
|
|
3329
|
+
branchDiff(input, opts) {
|
|
3330
|
+
return this.core.request(ops["pulls.branch_diff"], input, opts);
|
|
3331
|
+
}
|
|
3238
3332
|
checks(input, opts) {
|
|
3239
3333
|
return this.core.request(ops["pulls.checks"], input, opts);
|
|
3240
3334
|
}
|
|
@@ -3251,12 +3345,18 @@ class PullsResource {
|
|
|
3251
3345
|
deleteComment(input, opts) {
|
|
3252
3346
|
return this.core.request(ops["pulls.delete_comment"], input, opts);
|
|
3253
3347
|
}
|
|
3348
|
+
diff(input, opts) {
|
|
3349
|
+
return this.core.request(ops["pulls.diff"], input, opts);
|
|
3350
|
+
}
|
|
3254
3351
|
dismiss(input, opts) {
|
|
3255
3352
|
return this.core.request(ops["pulls.dismiss"], input, opts);
|
|
3256
3353
|
}
|
|
3257
3354
|
editComment(input, opts) {
|
|
3258
3355
|
return this.core.request(ops["pulls.edit_comment"], input, opts);
|
|
3259
3356
|
}
|
|
3357
|
+
forCommit(input, opts) {
|
|
3358
|
+
return this.core.request(ops["pulls.for_commit"], input, opts);
|
|
3359
|
+
}
|
|
3260
3360
|
get(input, opts) {
|
|
3261
3361
|
return this.core.request(ops["pulls.get"], input, opts);
|
|
3262
3362
|
}
|
|
@@ -3281,6 +3381,9 @@ class PullsResource {
|
|
|
3281
3381
|
stack(input, opts) {
|
|
3282
3382
|
return this.core.request(ops["pulls.stack"], input, opts);
|
|
3283
3383
|
}
|
|
3384
|
+
touching(input, opts) {
|
|
3385
|
+
return this.core.request(ops["pulls.touching"], input, opts);
|
|
3386
|
+
}
|
|
3284
3387
|
update(input, opts) {
|
|
3285
3388
|
return this.core.request(ops["pulls.update"], input, opts);
|
|
3286
3389
|
}
|
|
@@ -3294,6 +3397,15 @@ class ReposResource {
|
|
|
3294
3397
|
constructor(core) {
|
|
3295
3398
|
this.core = core;
|
|
3296
3399
|
}
|
|
3400
|
+
commit(input, opts) {
|
|
3401
|
+
return this.core.request(ops["repos.commit"], input, opts);
|
|
3402
|
+
}
|
|
3403
|
+
commits(input, opts) {
|
|
3404
|
+
return this.core.request(ops["repos.commits"], input, opts);
|
|
3405
|
+
}
|
|
3406
|
+
compare(input, opts) {
|
|
3407
|
+
return this.core.request(ops["repos.compare"], input, opts);
|
|
3408
|
+
}
|
|
3297
3409
|
create(input, opts) {
|
|
3298
3410
|
return this.core.request(ops["repos.create"], input, opts);
|
|
3299
3411
|
}
|
|
@@ -3564,6 +3676,9 @@ class PullRequest {
|
|
|
3564
3676
|
deleteComment(input, opts) {
|
|
3565
3677
|
return this.core.request(ops["pulls.delete_comment"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"], number: this.bound["number"] }, opts);
|
|
3566
3678
|
}
|
|
3679
|
+
diff(input = {}, opts) {
|
|
3680
|
+
return this.core.request(ops["pulls.diff"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"], number: this.bound["number"] }, opts);
|
|
3681
|
+
}
|
|
3567
3682
|
dismiss(input = {}, opts) {
|
|
3568
3683
|
return this.core.request(ops["pulls.dismiss"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"], number: this.bound["number"] }, opts);
|
|
3569
3684
|
}
|
|
@@ -3853,13 +3968,22 @@ class RepoPullsResource {
|
|
|
3853
3968
|
this.core = core;
|
|
3854
3969
|
this.bound = bound;
|
|
3855
3970
|
}
|
|
3971
|
+
branchDiff(input, opts) {
|
|
3972
|
+
return this.core.request(ops["pulls.branch_diff"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3973
|
+
}
|
|
3856
3974
|
async create(input, opts) {
|
|
3857
3975
|
const out = await this.core.request(ops["pulls.create"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3858
3976
|
return new PullRequest(this.core, { number: out["number"], owner: this.bound["owner"], repo: this.bound["repo"] });
|
|
3859
3977
|
}
|
|
3978
|
+
forCommit(input, opts) {
|
|
3979
|
+
return this.core.request(ops["pulls.for_commit"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3980
|
+
}
|
|
3860
3981
|
list(input = {}, opts) {
|
|
3861
3982
|
return this.core.request(ops["pulls.list"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3862
3983
|
}
|
|
3984
|
+
touching(input, opts) {
|
|
3985
|
+
return this.core.request(ops["pulls.touching"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3986
|
+
}
|
|
3863
3987
|
}
|
|
3864
3988
|
|
|
3865
3989
|
class RepoReposResource {
|
|
@@ -3869,6 +3993,15 @@ class RepoReposResource {
|
|
|
3869
3993
|
this.core = core;
|
|
3870
3994
|
this.bound = bound;
|
|
3871
3995
|
}
|
|
3996
|
+
commit(input, opts) {
|
|
3997
|
+
return this.core.request(ops["repos.commit"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3998
|
+
}
|
|
3999
|
+
commits(input = {}, opts) {
|
|
4000
|
+
return this.core.request(ops["repos.commits"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
4001
|
+
}
|
|
4002
|
+
compare(input, opts) {
|
|
4003
|
+
return this.core.request(ops["repos.compare"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
4004
|
+
}
|
|
3872
4005
|
get(input = {}, opts) {
|
|
3873
4006
|
return this.core.request(ops["repos.get"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
|
|
3874
4007
|
}
|