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/dist/tools.js
CHANGED
|
@@ -1482,6 +1482,19 @@ var ops = {
|
|
|
1482
1482
|
long: false,
|
|
1483
1483
|
paginated: false
|
|
1484
1484
|
},
|
|
1485
|
+
"pulls.branch_diff": {
|
|
1486
|
+
id: "pulls.branch_diff",
|
|
1487
|
+
method: "GET",
|
|
1488
|
+
path: "/api/repos/{owner}/{repo}/pulls/compare",
|
|
1489
|
+
pathParams: ["owner", "repo"],
|
|
1490
|
+
queryParams: ["branch", "lines"],
|
|
1491
|
+
bodyParams: [],
|
|
1492
|
+
effect: "read",
|
|
1493
|
+
retry: "safe",
|
|
1494
|
+
held: false,
|
|
1495
|
+
long: false,
|
|
1496
|
+
paginated: false
|
|
1497
|
+
},
|
|
1485
1498
|
"pulls.checks": {
|
|
1486
1499
|
id: "pulls.checks",
|
|
1487
1500
|
method: "GET",
|
|
@@ -1547,6 +1560,19 @@ var ops = {
|
|
|
1547
1560
|
long: false,
|
|
1548
1561
|
paginated: false
|
|
1549
1562
|
},
|
|
1563
|
+
"pulls.diff": {
|
|
1564
|
+
id: "pulls.diff",
|
|
1565
|
+
method: "GET",
|
|
1566
|
+
path: "/api/repos/{owner}/{repo}/pulls/{number}/compare",
|
|
1567
|
+
pathParams: ["owner", "repo", "number"],
|
|
1568
|
+
queryParams: ["lines"],
|
|
1569
|
+
bodyParams: [],
|
|
1570
|
+
effect: "read",
|
|
1571
|
+
retry: "safe",
|
|
1572
|
+
held: false,
|
|
1573
|
+
long: false,
|
|
1574
|
+
paginated: false
|
|
1575
|
+
},
|
|
1550
1576
|
"pulls.dismiss": {
|
|
1551
1577
|
id: "pulls.dismiss",
|
|
1552
1578
|
method: "POST",
|
|
@@ -1573,6 +1599,19 @@ var ops = {
|
|
|
1573
1599
|
long: false,
|
|
1574
1600
|
paginated: false
|
|
1575
1601
|
},
|
|
1602
|
+
"pulls.for_commit": {
|
|
1603
|
+
id: "pulls.for_commit",
|
|
1604
|
+
method: "GET",
|
|
1605
|
+
path: "/api/repos/{owner}/{repo}/commit/{sha}/pulls",
|
|
1606
|
+
pathParams: ["owner", "repo", "sha"],
|
|
1607
|
+
queryParams: [],
|
|
1608
|
+
bodyParams: [],
|
|
1609
|
+
effect: "read",
|
|
1610
|
+
retry: "safe",
|
|
1611
|
+
held: false,
|
|
1612
|
+
long: false,
|
|
1613
|
+
paginated: false
|
|
1614
|
+
},
|
|
1576
1615
|
"pulls.get": {
|
|
1577
1616
|
id: "pulls.get",
|
|
1578
1617
|
method: "GET",
|
|
@@ -1677,6 +1716,19 @@ var ops = {
|
|
|
1677
1716
|
long: false,
|
|
1678
1717
|
paginated: false
|
|
1679
1718
|
},
|
|
1719
|
+
"pulls.touching": {
|
|
1720
|
+
id: "pulls.touching",
|
|
1721
|
+
method: "GET",
|
|
1722
|
+
path: "/api/repos/{owner}/{repo}/pulls/touching",
|
|
1723
|
+
pathParams: ["owner", "repo"],
|
|
1724
|
+
queryParams: ["path", "state", "limit"],
|
|
1725
|
+
bodyParams: [],
|
|
1726
|
+
effect: "read",
|
|
1727
|
+
retry: "safe",
|
|
1728
|
+
held: false,
|
|
1729
|
+
long: false,
|
|
1730
|
+
paginated: false
|
|
1731
|
+
},
|
|
1680
1732
|
"pulls.update": {
|
|
1681
1733
|
id: "pulls.update",
|
|
1682
1734
|
method: "PATCH",
|
|
@@ -1703,6 +1755,45 @@ var ops = {
|
|
|
1703
1755
|
long: false,
|
|
1704
1756
|
paginated: false
|
|
1705
1757
|
},
|
|
1758
|
+
"repos.commit": {
|
|
1759
|
+
id: "repos.commit",
|
|
1760
|
+
method: "GET",
|
|
1761
|
+
path: "/api/repos/{owner}/{repo}/commit/{sha}",
|
|
1762
|
+
pathParams: ["owner", "repo", "sha"],
|
|
1763
|
+
queryParams: [],
|
|
1764
|
+
bodyParams: [],
|
|
1765
|
+
effect: "read",
|
|
1766
|
+
retry: "safe",
|
|
1767
|
+
held: false,
|
|
1768
|
+
long: false,
|
|
1769
|
+
paginated: false
|
|
1770
|
+
},
|
|
1771
|
+
"repos.commits": {
|
|
1772
|
+
id: "repos.commits",
|
|
1773
|
+
method: "GET",
|
|
1774
|
+
path: "/api/repos/{owner}/{repo}/commits",
|
|
1775
|
+
pathParams: ["owner", "repo"],
|
|
1776
|
+
queryParams: ["ref", "path", "limit", "skip", "cursor", "envelope"],
|
|
1777
|
+
bodyParams: [],
|
|
1778
|
+
effect: "read",
|
|
1779
|
+
retry: "safe",
|
|
1780
|
+
held: false,
|
|
1781
|
+
long: false,
|
|
1782
|
+
paginated: false
|
|
1783
|
+
},
|
|
1784
|
+
"repos.compare": {
|
|
1785
|
+
id: "repos.compare",
|
|
1786
|
+
method: "GET",
|
|
1787
|
+
path: "/api/repos/{owner}/{repo}/compare/{*spec}",
|
|
1788
|
+
pathParams: ["owner", "repo", "spec"],
|
|
1789
|
+
queryParams: ["lines", "from", "count"],
|
|
1790
|
+
bodyParams: [],
|
|
1791
|
+
effect: "read",
|
|
1792
|
+
retry: "safe",
|
|
1793
|
+
held: false,
|
|
1794
|
+
long: false,
|
|
1795
|
+
paginated: false
|
|
1796
|
+
},
|
|
1706
1797
|
"repos.create": {
|
|
1707
1798
|
id: "repos.create",
|
|
1708
1799
|
method: "POST",
|
|
@@ -2294,7 +2385,7 @@ var specs = [
|
|
|
2294
2385
|
description: "Open a pull request from a caisson's branch. Answers 409 when one is already open.",
|
|
2295
2386
|
properties: {
|
|
2296
2387
|
body: {
|
|
2297
|
-
description: "The description, one
|
|
2388
|
+
description: "The description, one line per item.",
|
|
2298
2389
|
items: {
|
|
2299
2390
|
type: "string"
|
|
2300
2391
|
},
|
|
@@ -3334,7 +3425,7 @@ repository's review requirement is not met.`,
|
|
|
3334
3425
|
properties: {
|
|
3335
3426
|
body: {
|
|
3336
3427
|
default: [],
|
|
3337
|
-
description: "The pull request description, one
|
|
3428
|
+
description: "The pull request description, one line per item.",
|
|
3338
3429
|
items: {
|
|
3339
3430
|
type: "string"
|
|
3340
3431
|
},
|
|
@@ -4310,6 +4401,135 @@ new run's number.`,
|
|
|
4310
4401
|
view: "view"
|
|
4311
4402
|
}
|
|
4312
4403
|
},
|
|
4404
|
+
{
|
|
4405
|
+
name: "commit_get",
|
|
4406
|
+
op: "repos.commit",
|
|
4407
|
+
description: "Show a commit: its message, author, parent and child, and its changes as a diff of the first files in path order.",
|
|
4408
|
+
schema: {
|
|
4409
|
+
description: "Show a commit: its message, author, parent and child, and its changes as a diff of the first files in path order.",
|
|
4410
|
+
properties: {
|
|
4411
|
+
org: {
|
|
4412
|
+
description: "The repository owner's handle.",
|
|
4413
|
+
type: "string"
|
|
4414
|
+
},
|
|
4415
|
+
repo: {
|
|
4416
|
+
description: "The repository's name.",
|
|
4417
|
+
type: "string"
|
|
4418
|
+
},
|
|
4419
|
+
sha: {
|
|
4420
|
+
description: "Commit sha (or its start), branch or tag.",
|
|
4421
|
+
type: "string"
|
|
4422
|
+
}
|
|
4423
|
+
},
|
|
4424
|
+
required: [
|
|
4425
|
+
"org",
|
|
4426
|
+
"repo",
|
|
4427
|
+
"sha"
|
|
4428
|
+
],
|
|
4429
|
+
type: "object"
|
|
4430
|
+
},
|
|
4431
|
+
renames: {
|
|
4432
|
+
org: "owner",
|
|
4433
|
+
repo: "repo",
|
|
4434
|
+
sha: "sha"
|
|
4435
|
+
}
|
|
4436
|
+
},
|
|
4437
|
+
{
|
|
4438
|
+
name: "commit_pulls",
|
|
4439
|
+
op: "pulls.for_commit",
|
|
4440
|
+
description: "List the pull requests whose commits include a commit, among the newest few hundred of any state.",
|
|
4441
|
+
schema: {
|
|
4442
|
+
description: "List the pull requests whose commits include a commit, among the newest few hundred of any state.",
|
|
4443
|
+
properties: {
|
|
4444
|
+
org: {
|
|
4445
|
+
description: "The repository owner's handle.",
|
|
4446
|
+
type: "string"
|
|
4447
|
+
},
|
|
4448
|
+
repo: {
|
|
4449
|
+
description: "The repository's name.",
|
|
4450
|
+
type: "string"
|
|
4451
|
+
},
|
|
4452
|
+
sha: {
|
|
4453
|
+
description: "Commit sha (or its start), branch or tag.",
|
|
4454
|
+
type: "string"
|
|
4455
|
+
}
|
|
4456
|
+
},
|
|
4457
|
+
required: [
|
|
4458
|
+
"org",
|
|
4459
|
+
"repo",
|
|
4460
|
+
"sha"
|
|
4461
|
+
],
|
|
4462
|
+
type: "object"
|
|
4463
|
+
},
|
|
4464
|
+
renames: {
|
|
4465
|
+
org: "owner",
|
|
4466
|
+
repo: "repo",
|
|
4467
|
+
sha: "sha"
|
|
4468
|
+
}
|
|
4469
|
+
},
|
|
4470
|
+
{
|
|
4471
|
+
name: "compare",
|
|
4472
|
+
op: "repos.compare",
|
|
4473
|
+
description: "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.",
|
|
4474
|
+
schema: {
|
|
4475
|
+
description: "Compare two branches, tags or commits: the commits `head` adds since their merge base and its diff. `spec` is\n`{base}...{head}`. A signed-out visitor sees a public repository's.",
|
|
4476
|
+
properties: {
|
|
4477
|
+
count: {
|
|
4478
|
+
description: "With `from`: how many files the page holds, 1 to 100.",
|
|
4479
|
+
format: "uint",
|
|
4480
|
+
minimum: 0,
|
|
4481
|
+
type: [
|
|
4482
|
+
"integer",
|
|
4483
|
+
"null"
|
|
4484
|
+
]
|
|
4485
|
+
},
|
|
4486
|
+
from: {
|
|
4487
|
+
description: "With `count`: the index of the first file of a page of files with their hunks.",
|
|
4488
|
+
format: "uint",
|
|
4489
|
+
minimum: 0,
|
|
4490
|
+
type: [
|
|
4491
|
+
"integer",
|
|
4492
|
+
"null"
|
|
4493
|
+
]
|
|
4494
|
+
},
|
|
4495
|
+
lines: {
|
|
4496
|
+
description: "Hunks for the leading files only, up to about this many diff lines; the answer then names `base` and `head`.",
|
|
4497
|
+
format: "uint64",
|
|
4498
|
+
minimum: 0,
|
|
4499
|
+
type: [
|
|
4500
|
+
"integer",
|
|
4501
|
+
"null"
|
|
4502
|
+
]
|
|
4503
|
+
},
|
|
4504
|
+
org: {
|
|
4505
|
+
description: "The repository owner's handle.",
|
|
4506
|
+
type: "string"
|
|
4507
|
+
},
|
|
4508
|
+
repo: {
|
|
4509
|
+
description: "The repository's name.",
|
|
4510
|
+
type: "string"
|
|
4511
|
+
},
|
|
4512
|
+
spec: {
|
|
4513
|
+
description: "`{base}...{head}`, such as `main...feature/login`.",
|
|
4514
|
+
type: "string"
|
|
4515
|
+
}
|
|
4516
|
+
},
|
|
4517
|
+
required: [
|
|
4518
|
+
"org",
|
|
4519
|
+
"repo",
|
|
4520
|
+
"spec"
|
|
4521
|
+
],
|
|
4522
|
+
type: "object"
|
|
4523
|
+
},
|
|
4524
|
+
renames: {
|
|
4525
|
+
count: "count",
|
|
4526
|
+
from: "from",
|
|
4527
|
+
lines: "lines",
|
|
4528
|
+
org: "owner",
|
|
4529
|
+
repo: "repo",
|
|
4530
|
+
spec: "spec"
|
|
4531
|
+
}
|
|
4532
|
+
},
|
|
4313
4533
|
{
|
|
4314
4534
|
name: "event_subscription_advance",
|
|
4315
4535
|
op: "event_subscriptions.advance",
|
|
@@ -6984,7 +7204,7 @@ answers 409.`,
|
|
|
6984
7204
|
},
|
|
6985
7205
|
body: {
|
|
6986
7206
|
default: [],
|
|
6987
|
-
description: "The description, one
|
|
7207
|
+
description: "The description, one line per item.",
|
|
6988
7208
|
items: {
|
|
6989
7209
|
type: "string"
|
|
6990
7210
|
},
|
|
@@ -7039,6 +7259,51 @@ answers 409.`,
|
|
|
7039
7259
|
title: "title"
|
|
7040
7260
|
}
|
|
7041
7261
|
},
|
|
7262
|
+
{
|
|
7263
|
+
name: "pull_diff",
|
|
7264
|
+
op: "pulls.diff",
|
|
7265
|
+
description: "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.",
|
|
7266
|
+
schema: {
|
|
7267
|
+
description: `Show what a pull request changes: the commits it adds and its diff against the merge base, with totals. A merged
|
|
7268
|
+
one answers the diff it merged. A signed-out visitor sees a public repository's.`,
|
|
7269
|
+
properties: {
|
|
7270
|
+
lines: {
|
|
7271
|
+
description: "Hunks for the leading files only, up to about this many diff lines; the answer then names `base` and `head`\nfor `repos.compare` pages of the rest.",
|
|
7272
|
+
format: "uint64",
|
|
7273
|
+
minimum: 0,
|
|
7274
|
+
type: [
|
|
7275
|
+
"integer",
|
|
7276
|
+
"null"
|
|
7277
|
+
]
|
|
7278
|
+
},
|
|
7279
|
+
number: {
|
|
7280
|
+
description: "Pull request number.",
|
|
7281
|
+
format: "int64",
|
|
7282
|
+
type: "integer"
|
|
7283
|
+
},
|
|
7284
|
+
org: {
|
|
7285
|
+
description: "The repository owner's handle.",
|
|
7286
|
+
type: "string"
|
|
7287
|
+
},
|
|
7288
|
+
repo: {
|
|
7289
|
+
description: "The repository's name.",
|
|
7290
|
+
type: "string"
|
|
7291
|
+
}
|
|
7292
|
+
},
|
|
7293
|
+
required: [
|
|
7294
|
+
"org",
|
|
7295
|
+
"repo",
|
|
7296
|
+
"number"
|
|
7297
|
+
],
|
|
7298
|
+
type: "object"
|
|
7299
|
+
},
|
|
7300
|
+
renames: {
|
|
7301
|
+
lines: "lines",
|
|
7302
|
+
number: "number",
|
|
7303
|
+
org: "owner",
|
|
7304
|
+
repo: "repo"
|
|
7305
|
+
}
|
|
7306
|
+
},
|
|
7042
7307
|
{
|
|
7043
7308
|
name: "pull_get",
|
|
7044
7309
|
op: "pulls.get",
|
|
@@ -7677,7 +7942,7 @@ or lock. Only the fields sent change.`,
|
|
|
7677
7942
|
},
|
|
7678
7943
|
body: {
|
|
7679
7944
|
default: null,
|
|
7680
|
-
description: "A new description, one
|
|
7945
|
+
description: "A new description, one line per item.",
|
|
7681
7946
|
items: {
|
|
7682
7947
|
type: "string"
|
|
7683
7948
|
},
|
|
@@ -7800,6 +8065,85 @@ or lock. Only the fields sent change.`,
|
|
|
7800
8065
|
},
|
|
7801
8066
|
renames: {}
|
|
7802
8067
|
},
|
|
8068
|
+
{
|
|
8069
|
+
name: "repo_log",
|
|
8070
|
+
op: "repos.commits",
|
|
8071
|
+
description: "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.",
|
|
8072
|
+
schema: {
|
|
8073
|
+
description: "List the commits of a branch, tag or commit, newest first, or the history of one path with `path`. A signed-out\nvisitor sees a public repository's.",
|
|
8074
|
+
properties: {
|
|
8075
|
+
cursor: {
|
|
8076
|
+
description: "The `cursor` of an answer that stopped before its page was full: the history goes on from there.",
|
|
8077
|
+
type: [
|
|
8078
|
+
"string",
|
|
8079
|
+
"null"
|
|
8080
|
+
]
|
|
8081
|
+
},
|
|
8082
|
+
envelope: {
|
|
8083
|
+
description: "`1` answers `{commits, cursor}` instead of the bare list.",
|
|
8084
|
+
type: [
|
|
8085
|
+
"string",
|
|
8086
|
+
"null"
|
|
8087
|
+
]
|
|
8088
|
+
},
|
|
8089
|
+
limit: {
|
|
8090
|
+
description: "Commits to answer: 500 by default, at most 1000.",
|
|
8091
|
+
format: "uint",
|
|
8092
|
+
minimum: 0,
|
|
8093
|
+
type: [
|
|
8094
|
+
"integer",
|
|
8095
|
+
"null"
|
|
8096
|
+
]
|
|
8097
|
+
},
|
|
8098
|
+
org: {
|
|
8099
|
+
description: "The repository owner's handle.",
|
|
8100
|
+
type: "string"
|
|
8101
|
+
},
|
|
8102
|
+
path: {
|
|
8103
|
+
description: "Only commits that changed this file or folder, following a renamed file to its earlier names.",
|
|
8104
|
+
type: [
|
|
8105
|
+
"string",
|
|
8106
|
+
"null"
|
|
8107
|
+
]
|
|
8108
|
+
},
|
|
8109
|
+
ref: {
|
|
8110
|
+
description: "Branch, tag or commit to start from; the default branch when absent.",
|
|
8111
|
+
type: [
|
|
8112
|
+
"string",
|
|
8113
|
+
"null"
|
|
8114
|
+
]
|
|
8115
|
+
},
|
|
8116
|
+
repo: {
|
|
8117
|
+
description: "The repository's name.",
|
|
8118
|
+
type: "string"
|
|
8119
|
+
},
|
|
8120
|
+
skip: {
|
|
8121
|
+
description: "Newest commits to leave out, to page.",
|
|
8122
|
+
format: "uint",
|
|
8123
|
+
minimum: 0,
|
|
8124
|
+
type: [
|
|
8125
|
+
"integer",
|
|
8126
|
+
"null"
|
|
8127
|
+
]
|
|
8128
|
+
}
|
|
8129
|
+
},
|
|
8130
|
+
required: [
|
|
8131
|
+
"org",
|
|
8132
|
+
"repo"
|
|
8133
|
+
],
|
|
8134
|
+
type: "object"
|
|
8135
|
+
},
|
|
8136
|
+
renames: {
|
|
8137
|
+
cursor: "cursor",
|
|
8138
|
+
envelope: "envelope",
|
|
8139
|
+
limit: "limit",
|
|
8140
|
+
org: "owner",
|
|
8141
|
+
path: "path",
|
|
8142
|
+
ref: "ref",
|
|
8143
|
+
repo: "repo",
|
|
8144
|
+
skip: "skip"
|
|
8145
|
+
}
|
|
8146
|
+
},
|
|
7803
8147
|
{
|
|
7804
8148
|
name: "repo_note_add",
|
|
7805
8149
|
op: "notes.create",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.4.0";
|
|
2
2
|
export declare const API_VERSION = "2026-12-01";
|
|
@@ -529,6 +529,10 @@ export declare class PullsResource {
|
|
|
529
529
|
* Resolves to `{ status: "held" }` when a person has to approve it first.
|
|
530
530
|
*/
|
|
531
531
|
autoMergeEnable(input: T.PullsAutoMergeEnableInput, opts?: RequestOptions): Promise<Result<T.PullsAutoMergeEnableOutput>>;
|
|
532
|
+
/**
|
|
533
|
+
* Show the diff of the pull request from a branch: the open one, else the newest closed or merged one.
|
|
534
|
+
*/
|
|
535
|
+
branchDiff(input: T.PullsBranchDiffInput, opts?: RequestOptions): Promise<T.PullsBranchDiffOutput>;
|
|
532
536
|
/**
|
|
533
537
|
* 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.
|
|
534
538
|
*/
|
|
@@ -549,6 +553,10 @@ export declare class PullsResource {
|
|
|
549
553
|
* Delete a comment on a pull request.
|
|
550
554
|
*/
|
|
551
555
|
deleteComment(input: T.PullsDeleteCommentInput, opts?: RequestOptions): Promise<T.PullsDeleteCommentOutput>;
|
|
556
|
+
/**
|
|
557
|
+
* 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.
|
|
558
|
+
*/
|
|
559
|
+
diff(input: T.PullsDiffInput, opts?: RequestOptions): Promise<T.PullsDiffOutput>;
|
|
552
560
|
/**
|
|
553
561
|
* Dismiss the reviews that approved or asked for changes on a pull request.
|
|
554
562
|
*/
|
|
@@ -557,6 +565,10 @@ export declare class PullsResource {
|
|
|
557
565
|
* 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.
|
|
558
566
|
*/
|
|
559
567
|
editComment(input: T.PullsEditCommentInput, opts?: RequestOptions): Promise<T.PullsEditCommentOutput>;
|
|
568
|
+
/**
|
|
569
|
+
* List the pull requests whose commits include a commit, among the newest few hundred of any state.
|
|
570
|
+
*/
|
|
571
|
+
forCommit(input: T.PullsForCommitInput, opts?: RequestOptions): Promise<T.PullsForCommitOutput>;
|
|
560
572
|
/**
|
|
561
573
|
* Show a pull request with its threads, whether it merges cleanly and the merge rules it does not meet yet.
|
|
562
574
|
*/
|
|
@@ -591,6 +603,10 @@ export declare class PullsResource {
|
|
|
591
603
|
* Show the whole tree of pull requests a pull request belongs to, root first, depth first.
|
|
592
604
|
*/
|
|
593
605
|
stack(input: T.PullsStackInput, opts?: RequestOptions): Promise<T.PullsStackOutput>;
|
|
606
|
+
/**
|
|
607
|
+
* 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.
|
|
608
|
+
*/
|
|
609
|
+
touching(input: T.PullsTouchingInput, opts?: RequestOptions): Promise<T.PullsTouchingOutput>;
|
|
594
610
|
/**
|
|
595
611
|
* 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.
|
|
596
612
|
*/
|
|
@@ -603,6 +619,18 @@ export declare class PullsResource {
|
|
|
603
619
|
export declare class ReposResource {
|
|
604
620
|
private readonly core;
|
|
605
621
|
constructor(core: Core);
|
|
622
|
+
/**
|
|
623
|
+
* Show a commit: its message, author, parent and child, and its changes as a diff of the first files in path order.
|
|
624
|
+
*/
|
|
625
|
+
commit(input: T.ReposCommitInput, opts?: RequestOptions): Promise<T.ReposCommitOutput>;
|
|
626
|
+
/**
|
|
627
|
+
* 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.
|
|
628
|
+
*/
|
|
629
|
+
commits(input: T.ReposCommitsInput, opts?: RequestOptions): Promise<T.ReposCommitsOutput>;
|
|
630
|
+
/**
|
|
631
|
+
* 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.
|
|
632
|
+
*/
|
|
633
|
+
compare(input: T.ReposCompareInput, opts?: RequestOptions): Promise<T.ReposCompareOutput>;
|
|
606
634
|
/**
|
|
607
635
|
* Create a repository for the caller, or in an org they belong to.
|
|
608
636
|
*/
|
|
@@ -903,6 +931,10 @@ export declare class PullRequest {
|
|
|
903
931
|
* Delete a comment on a pull request.
|
|
904
932
|
*/
|
|
905
933
|
deleteComment(input: Omit<T.PullsDeleteCommentInput, 'owner' | 'repo' | 'number'>, opts?: RequestOptions): Promise<T.PullsDeleteCommentOutput>;
|
|
934
|
+
/**
|
|
935
|
+
* 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.
|
|
936
|
+
*/
|
|
937
|
+
diff(input?: Omit<T.PullsDiffInput, 'owner' | 'repo' | 'number'>, opts?: RequestOptions): Promise<T.PullsDiffOutput>;
|
|
906
938
|
/**
|
|
907
939
|
* Dismiss the reviews that approved or asked for changes on a pull request.
|
|
908
940
|
*/
|
|
@@ -1234,19 +1266,43 @@ export declare class RepoPullsResource {
|
|
|
1234
1266
|
private readonly core;
|
|
1235
1267
|
private readonly bound;
|
|
1236
1268
|
constructor(core: Core, bound: RepoBound);
|
|
1269
|
+
/**
|
|
1270
|
+
* Show the diff of the pull request from a branch: the open one, else the newest closed or merged one.
|
|
1271
|
+
*/
|
|
1272
|
+
branchDiff(input: Omit<T.PullsBranchDiffInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.PullsBranchDiffOutput>;
|
|
1237
1273
|
/**
|
|
1238
1274
|
* Open a pull request from a branch into a base branch. Opening one for a branch that already has an open one answers 409.
|
|
1239
1275
|
*/
|
|
1240
1276
|
create(input: Omit<T.PullsCreateInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<PullRequest>;
|
|
1277
|
+
/**
|
|
1278
|
+
* List the pull requests whose commits include a commit, among the newest few hundred of any state.
|
|
1279
|
+
*/
|
|
1280
|
+
forCommit(input: Omit<T.PullsForCommitInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.PullsForCommitOutput>;
|
|
1241
1281
|
/**
|
|
1242
1282
|
* List a repository's pull requests, newest first. A signed-out visitor sees a public repository's.
|
|
1243
1283
|
*/
|
|
1244
1284
|
list(input?: Omit<T.PullsListInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.PullsListOutput>;
|
|
1285
|
+
/**
|
|
1286
|
+
* 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.
|
|
1287
|
+
*/
|
|
1288
|
+
touching(input: Omit<T.PullsTouchingInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.PullsTouchingOutput>;
|
|
1245
1289
|
}
|
|
1246
1290
|
export declare class RepoReposResource {
|
|
1247
1291
|
private readonly core;
|
|
1248
1292
|
private readonly bound;
|
|
1249
1293
|
constructor(core: Core, bound: RepoBound);
|
|
1294
|
+
/**
|
|
1295
|
+
* Show a commit: its message, author, parent and child, and its changes as a diff of the first files in path order.
|
|
1296
|
+
*/
|
|
1297
|
+
commit(input: Omit<T.ReposCommitInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.ReposCommitOutput>;
|
|
1298
|
+
/**
|
|
1299
|
+
* 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.
|
|
1300
|
+
*/
|
|
1301
|
+
commits(input?: Omit<T.ReposCommitsInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.ReposCommitsOutput>;
|
|
1302
|
+
/**
|
|
1303
|
+
* 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.
|
|
1304
|
+
*/
|
|
1305
|
+
compare(input: Omit<T.ReposCompareInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.ReposCompareOutput>;
|
|
1250
1306
|
/**
|
|
1251
1307
|
* 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.
|
|
1252
1308
|
*/
|
|
@@ -2,4 +2,4 @@ export * from "./api.js";
|
|
|
2
2
|
export { type OpId, ops } from "./ops.js";
|
|
3
3
|
export * as tools from "./tools.js";
|
|
4
4
|
export type * as types from "./types.js";
|
|
5
|
-
export type { AffectedMode, AffectedStep, AgentTrackingState, Annotation, ApiError, Artifacts, AskKind, AskOptionInput, AutoMerge, BatchItem, BranchUpdated, CaissonAffected, CaissonAsk, CaissonAstMatch, CaissonAstMatches, CaissonBase, CaissonBashResult, CaissonBatchResult, CaissonChange, CaissonChangeRequest, CaissonChanged, CaissonCommitted, CaissonEdit, CaissonFileRead, CaissonFilesRead, CaissonGlob, CaissonGrep, CaissonGrepCount, CaissonGrepLine, CaissonGrepMatch, CaissonLocated, CaissonLspAnswer, CaissonLspPlace, CaissonLspProgress, CaissonLspQuestion, CaissonLspRenamed, CaissonLspStopped, CaissonPage, CaissonPolicy, CaissonPull, CaissonRefused, CaissonReview, CaissonReviewStatus, CaissonRow, CaissonShipped, CaissonTested, Check, CheckRun, CheckRunAction, CheckRunApp, CheckRunApp2, CheckRunBody, CheckRunBrief, CheckRunList, CheckRunOutput, CheckRunText, CheckSource, CheckState, CheckStep, ChecksState, Claim, CloneDefaults, CloneDefaultsEdit, CloseReason, CodeLine, CodeSnippet, CommentKind, CommentProof, ConflictFile, ConflictKind, ConflictResolution, ConflictSide, ConflictTake, ContextVisibility, CreatedIssue, Delegate, DelegateAsk, DelegateRequest, DeletionScheduled, DiffSide, EnvChain, EnvChainEntry, EnvDeviceRequest, EnvFile, EnvFileWrite, EnvFiles, EnvLog, EnvLogEntry, EnvPendingRemoval, EnvPerson, EnvRekeyFile, EnvRepo, EnvSigned, ErrorCode, ErrorLocation, Event, EventPage, EventSubscription, FailedStep, FileHit, FindingResolution, GithubInstallUrl, GithubInstallation, GithubRepo, GrepMode, Held, HeldDecided, HeldListing, HeldRequest, Hidden, HideReason, Inbox, InboxCounts, InboxItem, Issue, IssueAsk, IssueAskAnswer, IssueAskOption, IssueComment, IssueContext, IssueDetail, IssueEvent, IssuePage, IssuePriority, IssueStage, IssueStarted, IssueState, IssueStatus, ItemRef, KeyProof, Label, LabelItem, LabelList, MeUpdated, MergeMethod, Mergeable, Milestone, MilestoneItem, MilestoneList, MilestoneState, MyIssue, MyIssues, NoContent, Opener, PathHit, PathRule, Proof, ProofSource, Pull, PullChecks, PullComment, PullCommit, PullConflicts, PullDetail, PullFile, PullHunk, PullLine, PullMerge, PullPage, PullPatchState, PullThread, QueueBatch, QueueDropped, QueueEntry, QueueStatus, Reaction, Reaction2, ReactionKind, RecoveryCodeList, RefHit, RefHit2, RefResults, RefResults2, RelatedItem, RelatedKind, RelatedLink, RelatedWork, RepoHit, RepoInfo, RepoNote, RepoNoteLimits, RepoNotes, ReviewChange, ReviewComment, ReviewFinding, ReviewFindingInput, ReviewPacket, ReviewRisk, ReviewSince, ReviewSinceFinding, Rollup, Run, RunArtifact, RunCancelled, RunEvent, RunFailures, RunId, RunJob, RunLogPage, RunLogs, RunStep, RunStepLog, RunTests, RunWait, Runs, Sandbox, SandboxBackground, SandboxCaisson, SandboxClass, SandboxExecResult, SandboxHostRef, SandboxIdle, SandboxKind, SandboxOrigin, SandboxPage, SandboxTokenMode, SandboxUsage, SandboxWait, SearchResults, SessionStep, SimilarIssue, SimilarIssues, SkippedWorkflow, SshKey, StackEntry, StopMode, SubIssue, Surface, SymbolHit, SymbolHit2, SymbolResults, SymbolResults2, TestFailure, Token, TokenCreated, TotpSetup, Verdict, Visibility, WaitAnswer, WaitTarget, WorkspaceUnread } from "./types.js";
|
|
5
|
+
export type { AffectedMode, AffectedStep, AgentTrackingState, Annotation, ApiError, Artifacts, AskKind, AskOptionInput, AutoMerge, BatchItem, BranchUpdated, CaissonAffected, CaissonAsk, CaissonAstMatch, CaissonAstMatches, CaissonBase, CaissonBashResult, CaissonBatchResult, CaissonChange, CaissonChangeRequest, CaissonChanged, CaissonCommitted, CaissonEdit, CaissonFileRead, CaissonFilesRead, CaissonGlob, CaissonGrep, CaissonGrepCount, CaissonGrepLine, CaissonGrepMatch, CaissonLocated, CaissonLspAnswer, CaissonLspPlace, CaissonLspProgress, CaissonLspQuestion, CaissonLspRenamed, CaissonLspStopped, CaissonPage, CaissonPolicy, CaissonPull, CaissonRefused, CaissonReview, CaissonReviewStatus, CaissonRow, CaissonShipped, CaissonTested, Check, CheckRun, CheckRunAction, CheckRunApp, CheckRunApp2, CheckRunBody, CheckRunBrief, CheckRunList, CheckRunOutput, CheckRunText, CheckSource, CheckState, CheckStep, ChecksState, Claim, CloneDefaults, CloneDefaultsEdit, CloseReason, CodeLine, CodeSnippet, CommentKind, CommentProof, CommitLog, CommitPage, CommitRecord, CommitView, CompareAnswer, CompareFiles, CompareView, ConflictFile, ConflictKind, ConflictResolution, ConflictSide, ConflictTake, ContextVisibility, CreatedIssue, Delegate, DelegateAsk, DelegateRequest, DeletionScheduled, DiffHunk, DiffLine, DiffSide, DiffTotals, EnvChain, EnvChainEntry, EnvDeviceRequest, EnvFile, EnvFileWrite, EnvFiles, EnvLog, EnvLogEntry, EnvPendingRemoval, EnvPerson, EnvRekeyFile, EnvRepo, EnvSigned, ErrorCode, ErrorLocation, Event, EventPage, EventSubscription, FailedStep, FileDiff, FileHit, FindingResolution, GithubInstallUrl, GithubInstallation, GithubRepo, GrepMode, Held, HeldDecided, HeldListing, HeldRequest, Hidden, HideReason, Inbox, InboxCounts, InboxItem, Issue, IssueAsk, IssueAskAnswer, IssueAskOption, IssueComment, IssueContext, IssueDetail, IssueEvent, IssuePage, IssuePriority, IssueStage, IssueStarted, IssueState, IssueStatus, ItemRef, KeyProof, Label, LabelItem, LabelList, MeUpdated, MergeMethod, Mergeable, Milestone, MilestoneItem, MilestoneList, MilestoneState, MyIssue, MyIssues, NoContent, Opener, PathHit, PathRule, Proof, ProofSource, Pull, PullChecks, PullComment, PullCommit, PullConflicts, PullDetail, PullDiff, PullFile, PullHunk, PullItems, PullLine, PullMerge, PullPage, PullPatchState, PullThread, QueueBatch, QueueDropped, QueueEntry, QueueStatus, Reaction, Reaction2, ReactionKind, RecoveryCodeList, RefHit, RefHit2, RefResults, RefResults2, RelatedItem, RelatedKind, RelatedLink, RelatedWork, RepoHit, RepoInfo, RepoNote, RepoNoteLimits, RepoNotes, ReviewChange, ReviewComment, ReviewFinding, ReviewFindingInput, ReviewPacket, ReviewRisk, ReviewSince, ReviewSinceFinding, Rollup, Run, RunArtifact, RunCancelled, RunEvent, RunFailures, RunId, RunJob, RunLogPage, RunLogs, RunStep, RunStepLog, RunTests, RunWait, Runs, Sandbox, SandboxBackground, SandboxCaisson, SandboxClass, SandboxExecResult, SandboxHostRef, SandboxIdle, SandboxKind, SandboxOrigin, SandboxPage, SandboxTokenMode, SandboxUsage, SandboxWait, SearchResults, SessionStep, SimilarIssue, SimilarIssues, SkippedWorkflow, SshKey, StackEntry, StopMode, SubIssue, Surface, SymbolHit, SymbolHit2, SymbolResults, SymbolResults2, TestFailure, Token, TokenCreated, TotpSetup, TouchingState, Verdict, Visibility, WaitAnswer, WaitTarget, WorkspaceUnread } from "./types.js";
|
|
@@ -1481,6 +1481,19 @@ export declare const ops: {
|
|
|
1481
1481
|
long: false;
|
|
1482
1482
|
paginated: false;
|
|
1483
1483
|
};
|
|
1484
|
+
'pulls.branch_diff': {
|
|
1485
|
+
id: string;
|
|
1486
|
+
method: 'GET';
|
|
1487
|
+
path: string;
|
|
1488
|
+
pathParams: string[];
|
|
1489
|
+
queryParams: string[];
|
|
1490
|
+
bodyParams: never[];
|
|
1491
|
+
effect: 'read';
|
|
1492
|
+
retry: 'safe';
|
|
1493
|
+
held: false;
|
|
1494
|
+
long: false;
|
|
1495
|
+
paginated: false;
|
|
1496
|
+
};
|
|
1484
1497
|
'pulls.checks': {
|
|
1485
1498
|
id: string;
|
|
1486
1499
|
method: 'GET';
|
|
@@ -1546,6 +1559,19 @@ export declare const ops: {
|
|
|
1546
1559
|
long: false;
|
|
1547
1560
|
paginated: false;
|
|
1548
1561
|
};
|
|
1562
|
+
'pulls.diff': {
|
|
1563
|
+
id: string;
|
|
1564
|
+
method: 'GET';
|
|
1565
|
+
path: string;
|
|
1566
|
+
pathParams: string[];
|
|
1567
|
+
queryParams: string[];
|
|
1568
|
+
bodyParams: never[];
|
|
1569
|
+
effect: 'read';
|
|
1570
|
+
retry: 'safe';
|
|
1571
|
+
held: false;
|
|
1572
|
+
long: false;
|
|
1573
|
+
paginated: false;
|
|
1574
|
+
};
|
|
1549
1575
|
'pulls.dismiss': {
|
|
1550
1576
|
id: string;
|
|
1551
1577
|
method: 'POST';
|
|
@@ -1572,6 +1598,19 @@ export declare const ops: {
|
|
|
1572
1598
|
long: false;
|
|
1573
1599
|
paginated: false;
|
|
1574
1600
|
};
|
|
1601
|
+
'pulls.for_commit': {
|
|
1602
|
+
id: string;
|
|
1603
|
+
method: 'GET';
|
|
1604
|
+
path: string;
|
|
1605
|
+
pathParams: string[];
|
|
1606
|
+
queryParams: never[];
|
|
1607
|
+
bodyParams: never[];
|
|
1608
|
+
effect: 'read';
|
|
1609
|
+
retry: 'safe';
|
|
1610
|
+
held: false;
|
|
1611
|
+
long: false;
|
|
1612
|
+
paginated: false;
|
|
1613
|
+
};
|
|
1575
1614
|
'pulls.get': {
|
|
1576
1615
|
id: string;
|
|
1577
1616
|
method: 'GET';
|
|
@@ -1676,6 +1715,19 @@ export declare const ops: {
|
|
|
1676
1715
|
long: false;
|
|
1677
1716
|
paginated: false;
|
|
1678
1717
|
};
|
|
1718
|
+
'pulls.touching': {
|
|
1719
|
+
id: string;
|
|
1720
|
+
method: 'GET';
|
|
1721
|
+
path: string;
|
|
1722
|
+
pathParams: string[];
|
|
1723
|
+
queryParams: string[];
|
|
1724
|
+
bodyParams: never[];
|
|
1725
|
+
effect: 'read';
|
|
1726
|
+
retry: 'safe';
|
|
1727
|
+
held: false;
|
|
1728
|
+
long: false;
|
|
1729
|
+
paginated: false;
|
|
1730
|
+
};
|
|
1679
1731
|
'pulls.update': {
|
|
1680
1732
|
id: string;
|
|
1681
1733
|
method: 'PATCH';
|
|
@@ -1702,6 +1754,45 @@ export declare const ops: {
|
|
|
1702
1754
|
long: false;
|
|
1703
1755
|
paginated: false;
|
|
1704
1756
|
};
|
|
1757
|
+
'repos.commit': {
|
|
1758
|
+
id: string;
|
|
1759
|
+
method: 'GET';
|
|
1760
|
+
path: string;
|
|
1761
|
+
pathParams: string[];
|
|
1762
|
+
queryParams: never[];
|
|
1763
|
+
bodyParams: never[];
|
|
1764
|
+
effect: 'read';
|
|
1765
|
+
retry: 'safe';
|
|
1766
|
+
held: false;
|
|
1767
|
+
long: false;
|
|
1768
|
+
paginated: false;
|
|
1769
|
+
};
|
|
1770
|
+
'repos.commits': {
|
|
1771
|
+
id: string;
|
|
1772
|
+
method: 'GET';
|
|
1773
|
+
path: string;
|
|
1774
|
+
pathParams: string[];
|
|
1775
|
+
queryParams: string[];
|
|
1776
|
+
bodyParams: never[];
|
|
1777
|
+
effect: 'read';
|
|
1778
|
+
retry: 'safe';
|
|
1779
|
+
held: false;
|
|
1780
|
+
long: false;
|
|
1781
|
+
paginated: false;
|
|
1782
|
+
};
|
|
1783
|
+
'repos.compare': {
|
|
1784
|
+
id: string;
|
|
1785
|
+
method: 'GET';
|
|
1786
|
+
path: string;
|
|
1787
|
+
pathParams: string[];
|
|
1788
|
+
queryParams: string[];
|
|
1789
|
+
bodyParams: never[];
|
|
1790
|
+
effect: 'read';
|
|
1791
|
+
retry: 'safe';
|
|
1792
|
+
held: false;
|
|
1793
|
+
long: false;
|
|
1794
|
+
paginated: false;
|
|
1795
|
+
};
|
|
1705
1796
|
'repos.create': {
|
|
1706
1797
|
id: string;
|
|
1707
1798
|
method: 'POST';
|