Files
ClawSkills/git-hangman-lab/scripts/publish-package
lyn 1e7af09245 publish-package: read current link state before re-linking
Gitea's /-/link/{repo} endpoint returns HTTP 400 "invalid argument"
whenever the package already has ANY linked repo, and /-/unlink returns
the same 400 when nothing is linked. Both are non-idempotent. Fix by
GET-ing the package version first, comparing the current repository to
the target, and only unlinking/linking when the state actually needs to
change. Idempotent across repeated publishes of the same image.
2026-04-15 11:03:32 +00:00

6.6 KiB
Executable File