An agent skill for creating detailed, interactive isometric illustrations of real-world machines and complex systems. Generates polished SVGs with optional WebGL shaders and 3D effects.
publish.mjs: make the fork without --remote, which gh 2.101 refuses with a repository argument
R.a0dac952ab25
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex cec4034..a0f9e01 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,6 +4,10 @@ All notable changes to Anatomy are recorded here. The format follows [Keep a Cha## [Unreleased]+### Fixed++- `publish.mjs --submit` makes the fork again with gh 2.101 and later, which refuse `--remote` when a repository is named; gh never adds a remote in that case, so the flag is gone (#53).+## [1.1.0] - 2026-10-12### Addeddiff --git a/scripts/publish.mjs b/scripts/publish.mjsindex f6f0412..956ab2c 100644--- a/scripts/publish.mjs+++ b/scripts/publish.mjs@@ -235,7 +235,7 @@ export function submitPlan({ login, canPush, upstream, author, id, title }) {const folder = `figures/${author.toLowerCase()}/${id}`;const branch = `figure/${id}`;const steps = [- ...(canPush ? [] : [{ say: `make (or reuse) your fork, ${target}`, gh: ["repo", "fork", upstream, "--clone=false", "--remote=false"] }]),+ ...(canPush ? [] : [{ say: `make (or reuse) your fork, ${target}`, gh: ["repo", "fork", upstream, "--clone=false"] }]),{ say: "let git use your GitHub CLI login", gh: ["auth", "setup-git"] },{ say: `start ${branch} from the gallery's latest main`, git: ["fetch", "--quiet", `https://github.com/${upstream}.git`, "main"] },{ git: ["switch", "--quiet", "-C", branch, "FETCH_HEAD"] },diff --git a/scripts/publish.test.mjs b/scripts/publish.test.mjsindex e2c1536..3499a8a 100644--- a/scripts/publish.test.mjs+++ b/scripts/publish.test.mjs@@ -74,7 +74,7 @@ test("--submit: people who can push get a branch; everyone else a fork made forassert.deepEqual(owner.steps.at(-1).pr, { repo: "wheresryan22/anatomy-community", head: "figure/token-bucket", title: "Add Token bucket" });const guest = submitPlan({ login: "Octo-Cat", canPush: false, upstream: "wheresryan22/anatomy-community", author: "Octo-Cat", id: "token-bucket", title: "Token bucket" });assert.equal(guest.target, "Octo-Cat/anatomy-community");- assert.deepEqual(guest.steps[0].gh, ["repo", "fork", "wheresryan22/anatomy-community", "--clone=false", "--remote=false"]);+ assert.deepEqual(guest.steps[0].gh, ["repo", "fork", "wheresryan22/anatomy-community", "--clone=false"]);assert.equal(guest.steps.at(-1).pr.head, "Octo-Cat:figure/token-bucket");assert.ok(guest.steps.some((s) => s.git?.[0] === "add" && s.git.at(-1) === "figures/octo-cat/token-bucket"), "only the figure's folder is added");});