@bensandee/forgejo-cli 0.5.0 → 0.5.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/bin.mjs +3 -2
- package/package.json +1 -1
package/dist/bin.mjs
CHANGED
|
@@ -162,7 +162,7 @@ function loadEnvFileForBin(rawArgs, bin, io = processIo) {
|
|
|
162
162
|
//#region src/version.ts
|
|
163
163
|
const parsed = z.object({ version: z.string() }).safeParse({
|
|
164
164
|
name: "@bensandee/forgejo-cli",
|
|
165
|
-
version: "0.5.
|
|
165
|
+
version: "0.5.1",
|
|
166
166
|
description: "bst-fj: Forgejo API commands without the rest of bst",
|
|
167
167
|
license: "MIT",
|
|
168
168
|
repository: {
|
|
@@ -5762,9 +5762,10 @@ const prCloseCommand = defineCommand({
|
|
|
5762
5762
|
};
|
|
5763
5763
|
const number = parsePrNumber(args.number);
|
|
5764
5764
|
const comment = readBodySource(args.comment ?? void 0, args["comment-file"] ?? void 0, { flags });
|
|
5765
|
-
const conn = requireForgejoTargetFromRepo(process.cwd(), args.repo ?? void 0, "pr:close is Forgejo-only -- use gh pr close <n> on GitHub.");
|
|
5766
5765
|
const dryRun = args["dry-run"] === true;
|
|
5767
5766
|
try {
|
|
5767
|
+
rejectEmptyComment(comment);
|
|
5768
|
+
const conn = requireForgejoTargetFromRepo(process.cwd(), args.repo ?? void 0, "pr:close is Forgejo-only -- use gh pr close <n> on GitHub.");
|
|
5768
5769
|
const result = await closePullRequest(forgejoIssueApi(cliFetcher(), conn), {
|
|
5769
5770
|
number,
|
|
5770
5771
|
dryRun,
|