fix(mosaic-tools): pass explicit Gitea repo args #523

Closed
jason.woltje wants to merge 1 commits from fix/git-wrapper-repo-detection into main
Owner

Summary

  • Adds a shared Gitea repo-argument helper to Mosaic git wrappers.
  • Passes explicit repo/login arguments to tea-based Gitea commands so worktrees/profile shells do not rely on tea repo inference.
  • Adds a Gitea API fallback for pr-create.sh, matching the existing issue-create fallback pattern.
  • Removes eval from pr-create.sh and issue-create.sh command construction so markdown/backticks in titles or bodies are not shell-executed.

Verification

  • bash -n on changed shell wrappers
  • detect_platform, get_repo_info, and get_gitea_repo_args smoke-tested in the worktree
  • git diff --check
  • Patched pr-create.sh used to open this PR, proving explicit repo args fix the observed failure.

Operational Context

Fixes the recurring Mosaic wrapper failure seen from AI-BMA workers: Remote repository required: Specify ID via --repo or execute from a local git repo.

## Summary - Adds a shared Gitea repo-argument helper to Mosaic git wrappers. - Passes explicit repo/login arguments to tea-based Gitea commands so worktrees/profile shells do not rely on tea repo inference. - Adds a Gitea API fallback for pr-create.sh, matching the existing issue-create fallback pattern. - Removes eval from pr-create.sh and issue-create.sh command construction so markdown/backticks in titles or bodies are not shell-executed. ## Verification - bash -n on changed shell wrappers - detect_platform, get_repo_info, and get_gitea_repo_args smoke-tested in the worktree - git diff --check - Patched pr-create.sh used to open this PR, proving explicit repo args fix the observed failure. ## Operational Context Fixes the recurring Mosaic wrapper failure seen from AI-BMA workers: Remote repository required: Specify ID via --repo or execute from a local git repo.
jason.woltje added 1 commit 2026-05-26 19:29:54 +00:00
fix(mosaic-tools): pass explicit Gitea repo args
Some checks failed
ci/woodpecker/push/ci Pipeline was canceled
ci/woodpecker/pr/ci Pipeline was canceled
abbd889e30
jason.woltje force-pushed fix/git-wrapper-repo-detection from abbd889e30 to 46cc91ccbe 2026-05-26 19:31:23 +00:00 Compare
Author
Owner

Closing as superseded by #524 (rollup 821e19d). Assessment: the intent (explicit --repo for Gitea wrappers) is fully implemented in main, and main's version is strictly better — array-based command building (vs this PR's eval), --repo override flags on issue-list/pr-list/pr-view, and REPO_INFO validation. Residual diff is regressive. No unique content remains. — orchestrator (mos)

Closing as **superseded by #524** (rollup 821e19d). Assessment: the intent (explicit --repo for Gitea wrappers) is fully implemented in main, and main's version is strictly better — array-based command building (vs this PR's eval), --repo override flags on issue-list/pr-list/pr-view, and REPO_INFO validation. Residual diff is regressive. No unique content remains. — orchestrator (mos)
jason.woltje closed this pull request 2026-06-11 18:31:43 +00:00
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
ci/woodpecker/push/ci Pipeline failed

Pull request closed

Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#523