@bensandee/forgejo-cli 0.8.0 → 0.9.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.
Files changed (2) hide show
  1. package/dist/bin.mjs +11 -1
  2. package/package.json +1 -1
package/dist/bin.mjs CHANGED
@@ -160,7 +160,7 @@ function loadEnvFileForBin(rawArgs, bin, io = processIo) {
160
160
  // src/version.ts
161
161
  const parsed = z.object({ version: z.string() }).safeParse({
162
162
  name: "@bensandee/forgejo-cli",
163
- version: "0.8.0",
163
+ version: "0.9.0",
164
164
  description: "bst-fj: Forgejo API commands without the rest of bst",
165
165
  license: "MIT",
166
166
  repository: {
@@ -2654,6 +2654,14 @@ async function settleBackoff(attempt, baseDelayMs) {
2654
2654
  const delay = Math.min(baseDelayMs * 2 ** (attempt - 1), SETTLE_MAX_DELAY_MS);
2655
2655
  await new Promise((resolve) => setTimeout(resolve, delay));
2656
2656
  }
2657
+ const ReleaseAssetSchema = z.object({
2658
+ id: z.number(),
2659
+ name: z.string()
2660
+ });
2661
+ z.object({
2662
+ id: z.number(),
2663
+ assets: z.array(ReleaseAssetSchema).nullish()
2664
+ });
2657
2665
  z.looseObject({
2658
2666
  id: z.number(),
2659
2667
  tag_name: z.string(),
@@ -4066,6 +4074,7 @@ async function findOpenPr(executor, conn, head, signal = null) {
4066
4074
  const PullListItemSchema = z.object({
4067
4075
  number: z.number(),
4068
4076
  title: z.string().nullish(),
4077
+ body: z.string().nullish(),
4069
4078
  head: z.object({
4070
4079
  ref: z.string(),
4071
4080
  repo: z.object({ full_name: z.string() }).nullish()
@@ -4113,6 +4122,7 @@ async function listPulls(executor, conn, options = {}) {
4113
4122
  const items = parsed.data.map((pr) => ({
4114
4123
  number: pr.number,
4115
4124
  title: pr.title ?? null,
4125
+ body: pr.body ?? null,
4116
4126
  headRef: pr.head.ref,
4117
4127
  headRepo: pr.head.repo?.full_name ?? null,
4118
4128
  baseRef: pr.base?.ref ?? null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bensandee/forgejo-cli",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "bst-fj: Forgejo API commands without the rest of bst",
5
5
  "license": "MIT",
6
6
  "repository": {