tools/git/issue-close.sh pins tea login to 'mosaicstack' → fails on USC instance (issue-comment.sh works) #536
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
tools/git/issue-close.shfails on the USC Gitea instance (git.uscllc.com) with:It appears to pin the
tealogin tomosaicstackregardless of the target repo's host, so closing an issue on ausc/*repo fails.issue-comment.shworks fine on the same repo, so the platform/login detection is inconsistent between the two wrappers.Context
Found 2026-06-11 closing device-imaging issues on git.uscllc.com. Worked around via the Gitea API fallback (documented path). Same class of login/identity bug as the pr-merge/pr-metadata wrappers fixed in the #524 rollup —
issue-close.sh(and likely peers likeissue-reopen.sh) appear to have missed that fix.Fix
Apply the same per-repo login/host detection that
issue-comment.sh/detect-platform.shuse (resolve--login/--repofrom the target repo's remote host, e.g.uscfor git.uscllc.com), rather than a hardcodedmosaicstacklogin. Audit allissue-*.shwrappers for the same pattern.Reported via the device-imaging E2E close-out (installer agent).