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/dist/tools.cjs CHANGED
@@ -1529,6 +1529,19 @@ var ops = {
1529
1529
  long: false,
1530
1530
  paginated: false
1531
1531
  },
1532
+ "pulls.branch_diff": {
1533
+ id: "pulls.branch_diff",
1534
+ method: "GET",
1535
+ path: "/api/repos/{owner}/{repo}/pulls/compare",
1536
+ pathParams: ["owner", "repo"],
1537
+ queryParams: ["branch", "lines"],
1538
+ bodyParams: [],
1539
+ effect: "read",
1540
+ retry: "safe",
1541
+ held: false,
1542
+ long: false,
1543
+ paginated: false
1544
+ },
1532
1545
  "pulls.checks": {
1533
1546
  id: "pulls.checks",
1534
1547
  method: "GET",
@@ -1594,6 +1607,19 @@ var ops = {
1594
1607
  long: false,
1595
1608
  paginated: false
1596
1609
  },
1610
+ "pulls.diff": {
1611
+ id: "pulls.diff",
1612
+ method: "GET",
1613
+ path: "/api/repos/{owner}/{repo}/pulls/{number}/compare",
1614
+ pathParams: ["owner", "repo", "number"],
1615
+ queryParams: ["lines"],
1616
+ bodyParams: [],
1617
+ effect: "read",
1618
+ retry: "safe",
1619
+ held: false,
1620
+ long: false,
1621
+ paginated: false
1622
+ },
1597
1623
  "pulls.dismiss": {
1598
1624
  id: "pulls.dismiss",
1599
1625
  method: "POST",
@@ -1620,6 +1646,19 @@ var ops = {
1620
1646
  long: false,
1621
1647
  paginated: false
1622
1648
  },
1649
+ "pulls.for_commit": {
1650
+ id: "pulls.for_commit",
1651
+ method: "GET",
1652
+ path: "/api/repos/{owner}/{repo}/commit/{sha}/pulls",
1653
+ pathParams: ["owner", "repo", "sha"],
1654
+ queryParams: [],
1655
+ bodyParams: [],
1656
+ effect: "read",
1657
+ retry: "safe",
1658
+ held: false,
1659
+ long: false,
1660
+ paginated: false
1661
+ },
1623
1662
  "pulls.get": {
1624
1663
  id: "pulls.get",
1625
1664
  method: "GET",
@@ -1724,6 +1763,19 @@ var ops = {
1724
1763
  long: false,
1725
1764
  paginated: false
1726
1765
  },
1766
+ "pulls.touching": {
1767
+ id: "pulls.touching",
1768
+ method: "GET",
1769
+ path: "/api/repos/{owner}/{repo}/pulls/touching",
1770
+ pathParams: ["owner", "repo"],
1771
+ queryParams: ["path", "state", "limit"],
1772
+ bodyParams: [],
1773
+ effect: "read",
1774
+ retry: "safe",
1775
+ held: false,
1776
+ long: false,
1777
+ paginated: false
1778
+ },
1727
1779
  "pulls.update": {
1728
1780
  id: "pulls.update",
1729
1781
  method: "PATCH",
@@ -1750,6 +1802,45 @@ var ops = {
1750
1802
  long: false,
1751
1803
  paginated: false
1752
1804
  },
1805
+ "repos.commit": {
1806
+ id: "repos.commit",
1807
+ method: "GET",
1808
+ path: "/api/repos/{owner}/{repo}/commit/{sha}",
1809
+ pathParams: ["owner", "repo", "sha"],
1810
+ queryParams: [],
1811
+ bodyParams: [],
1812
+ effect: "read",
1813
+ retry: "safe",
1814
+ held: false,
1815
+ long: false,
1816
+ paginated: false
1817
+ },
1818
+ "repos.commits": {
1819
+ id: "repos.commits",
1820
+ method: "GET",
1821
+ path: "/api/repos/{owner}/{repo}/commits",
1822
+ pathParams: ["owner", "repo"],
1823
+ queryParams: ["ref", "path", "limit", "skip", "cursor", "envelope"],
1824
+ bodyParams: [],
1825
+ effect: "read",
1826
+ retry: "safe",
1827
+ held: false,
1828
+ long: false,
1829
+ paginated: false
1830
+ },
1831
+ "repos.compare": {
1832
+ id: "repos.compare",
1833
+ method: "GET",
1834
+ path: "/api/repos/{owner}/{repo}/compare/{*spec}",
1835
+ pathParams: ["owner", "repo", "spec"],
1836
+ queryParams: ["lines", "from", "count"],
1837
+ bodyParams: [],
1838
+ effect: "read",
1839
+ retry: "safe",
1840
+ held: false,
1841
+ long: false,
1842
+ paginated: false
1843
+ },
1753
1844
  "repos.create": {
1754
1845
  id: "repos.create",
1755
1846
  method: "POST",
@@ -2341,7 +2432,7 @@ var specs = [
2341
2432
  description: "Open a pull request from a caisson's branch. Answers 409 when one is already open.",
2342
2433
  properties: {
2343
2434
  body: {
2344
- description: "The description, one paragraph per item.",
2435
+ description: "The description, one line per item.",
2345
2436
  items: {
2346
2437
  type: "string"
2347
2438
  },
@@ -3381,7 +3472,7 @@ repository's review requirement is not met.`,
3381
3472
  properties: {
3382
3473
  body: {
3383
3474
  default: [],
3384
- description: "The pull request description, one paragraph per item.",
3475
+ description: "The pull request description, one line per item.",
3385
3476
  items: {
3386
3477
  type: "string"
3387
3478
  },
@@ -4357,6 +4448,135 @@ new run's number.`,
4357
4448
  view: "view"
4358
4449
  }
4359
4450
  },
4451
+ {
4452
+ name: "commit_get",
4453
+ op: "repos.commit",
4454
+ description: "Show a commit: its message, author, parent and child, and its changes as a diff of the first files in path order.",
4455
+ schema: {
4456
+ description: "Show a commit: its message, author, parent and child, and its changes as a diff of the first files in path order.",
4457
+ properties: {
4458
+ org: {
4459
+ description: "The repository owner's handle.",
4460
+ type: "string"
4461
+ },
4462
+ repo: {
4463
+ description: "The repository's name.",
4464
+ type: "string"
4465
+ },
4466
+ sha: {
4467
+ description: "Commit sha (or its start), branch or tag.",
4468
+ type: "string"
4469
+ }
4470
+ },
4471
+ required: [
4472
+ "org",
4473
+ "repo",
4474
+ "sha"
4475
+ ],
4476
+ type: "object"
4477
+ },
4478
+ renames: {
4479
+ org: "owner",
4480
+ repo: "repo",
4481
+ sha: "sha"
4482
+ }
4483
+ },
4484
+ {
4485
+ name: "commit_pulls",
4486
+ op: "pulls.for_commit",
4487
+ description: "List the pull requests whose commits include a commit, among the newest few hundred of any state.",
4488
+ schema: {
4489
+ description: "List the pull requests whose commits include a commit, among the newest few hundred of any state.",
4490
+ properties: {
4491
+ org: {
4492
+ description: "The repository owner's handle.",
4493
+ type: "string"
4494
+ },
4495
+ repo: {
4496
+ description: "The repository's name.",
4497
+ type: "string"
4498
+ },
4499
+ sha: {
4500
+ description: "Commit sha (or its start), branch or tag.",
4501
+ type: "string"
4502
+ }
4503
+ },
4504
+ required: [
4505
+ "org",
4506
+ "repo",
4507
+ "sha"
4508
+ ],
4509
+ type: "object"
4510
+ },
4511
+ renames: {
4512
+ org: "owner",
4513
+ repo: "repo",
4514
+ sha: "sha"
4515
+ }
4516
+ },
4517
+ {
4518
+ name: "compare",
4519
+ op: "repos.compare",
4520
+ 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.",
4521
+ schema: {
4522
+ 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.",
4523
+ properties: {
4524
+ count: {
4525
+ description: "With `from`: how many files the page holds, 1 to 100.",
4526
+ format: "uint",
4527
+ minimum: 0,
4528
+ type: [
4529
+ "integer",
4530
+ "null"
4531
+ ]
4532
+ },
4533
+ from: {
4534
+ description: "With `count`: the index of the first file of a page of files with their hunks.",
4535
+ format: "uint",
4536
+ minimum: 0,
4537
+ type: [
4538
+ "integer",
4539
+ "null"
4540
+ ]
4541
+ },
4542
+ lines: {
4543
+ description: "Hunks for the leading files only, up to about this many diff lines; the answer then names `base` and `head`.",
4544
+ format: "uint64",
4545
+ minimum: 0,
4546
+ type: [
4547
+ "integer",
4548
+ "null"
4549
+ ]
4550
+ },
4551
+ org: {
4552
+ description: "The repository owner's handle.",
4553
+ type: "string"
4554
+ },
4555
+ repo: {
4556
+ description: "The repository's name.",
4557
+ type: "string"
4558
+ },
4559
+ spec: {
4560
+ description: "`{base}...{head}`, such as `main...feature/login`.",
4561
+ type: "string"
4562
+ }
4563
+ },
4564
+ required: [
4565
+ "org",
4566
+ "repo",
4567
+ "spec"
4568
+ ],
4569
+ type: "object"
4570
+ },
4571
+ renames: {
4572
+ count: "count",
4573
+ from: "from",
4574
+ lines: "lines",
4575
+ org: "owner",
4576
+ repo: "repo",
4577
+ spec: "spec"
4578
+ }
4579
+ },
4360
4580
  {
4361
4581
  name: "event_subscription_advance",
4362
4582
  op: "event_subscriptions.advance",
@@ -7031,7 +7251,7 @@ answers 409.`,
7031
7251
  },
7032
7252
  body: {
7033
7253
  default: [],
7034
- description: "The description, one paragraph per item.",
7254
+ description: "The description, one line per item.",
7035
7255
  items: {
7036
7256
  type: "string"
7037
7257
  },
@@ -7086,6 +7306,51 @@ answers 409.`,
7086
7306
  title: "title"
7087
7307
  }
7088
7308
  },
7309
+ {
7310
+ name: "pull_diff",
7311
+ op: "pulls.diff",
7312
+ 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.",
7313
+ schema: {
7314
+ description: `Show what a pull request changes: the commits it adds and its diff against the merge base, with totals. A merged
7315
+ one answers the diff it merged. A signed-out visitor sees a public repository's.`,
7316
+ properties: {
7317
+ lines: {
7318
+ 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.",
7319
+ format: "uint64",
7320
+ minimum: 0,
7321
+ type: [
7322
+ "integer",
7323
+ "null"
7324
+ ]
7325
+ },
7326
+ number: {
7327
+ description: "Pull request number.",
7328
+ format: "int64",
7329
+ type: "integer"
7330
+ },
7331
+ org: {
7332
+ description: "The repository owner's handle.",
7333
+ type: "string"
7334
+ },
7335
+ repo: {
7336
+ description: "The repository's name.",
7337
+ type: "string"
7338
+ }
7339
+ },
7340
+ required: [
7341
+ "org",
7342
+ "repo",
7343
+ "number"
7344
+ ],
7345
+ type: "object"
7346
+ },
7347
+ renames: {
7348
+ lines: "lines",
7349
+ number: "number",
7350
+ org: "owner",
7351
+ repo: "repo"
7352
+ }
7353
+ },
7089
7354
  {
7090
7355
  name: "pull_get",
7091
7356
  op: "pulls.get",
@@ -7724,7 +7989,7 @@ or lock. Only the fields sent change.`,
7724
7989
  },
7725
7990
  body: {
7726
7991
  default: null,
7727
- description: "A new description, one paragraph per item.",
7992
+ description: "A new description, one line per item.",
7728
7993
  items: {
7729
7994
  type: "string"
7730
7995
  },
@@ -7847,6 +8112,85 @@ or lock. Only the fields sent change.`,
7847
8112
  },
7848
8113
  renames: {}
7849
8114
  },
8115
+ {
8116
+ name: "repo_log",
8117
+ op: "repos.commits",
8118
+ 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.",
8119
+ schema: {
8120
+ 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.",
8121
+ properties: {
8122
+ cursor: {
8123
+ description: "The `cursor` of an answer that stopped before its page was full: the history goes on from there.",
8124
+ type: [
8125
+ "string",
8126
+ "null"
8127
+ ]
8128
+ },
8129
+ envelope: {
8130
+ description: "`1` answers `{commits, cursor}` instead of the bare list.",
8131
+ type: [
8132
+ "string",
8133
+ "null"
8134
+ ]
8135
+ },
8136
+ limit: {
8137
+ description: "Commits to answer: 500 by default, at most 1000.",
8138
+ format: "uint",
8139
+ minimum: 0,
8140
+ type: [
8141
+ "integer",
8142
+ "null"
8143
+ ]
8144
+ },
8145
+ org: {
8146
+ description: "The repository owner's handle.",
8147
+ type: "string"
8148
+ },
8149
+ path: {
8150
+ description: "Only commits that changed this file or folder, following a renamed file to its earlier names.",
8151
+ type: [
8152
+ "string",
8153
+ "null"
8154
+ ]
8155
+ },
8156
+ ref: {
8157
+ description: "Branch, tag or commit to start from; the default branch when absent.",
8158
+ type: [
8159
+ "string",
8160
+ "null"
8161
+ ]
8162
+ },
8163
+ repo: {
8164
+ description: "The repository's name.",
8165
+ type: "string"
8166
+ },
8167
+ skip: {
8168
+ description: "Newest commits to leave out, to page.",
8169
+ format: "uint",
8170
+ minimum: 0,
8171
+ type: [
8172
+ "integer",
8173
+ "null"
8174
+ ]
8175
+ }
8176
+ },
8177
+ required: [
8178
+ "org",
8179
+ "repo"
8180
+ ],
8181
+ type: "object"
8182
+ },
8183
+ renames: {
8184
+ cursor: "cursor",
8185
+ envelope: "envelope",
8186
+ limit: "limit",
8187
+ org: "owner",
8188
+ path: "path",
8189
+ ref: "ref",
8190
+ repo: "repo",
8191
+ skip: "skip"
8192
+ }
8193
+ },
7850
8194
  {
7851
8195
  name: "repo_note_add",
7852
8196
  op: "notes.create",