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

Open
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
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
ci/woodpecker/push/ci Pipeline failed
This pull request has changes conflicting with the target branch.
  • packages/mosaic/framework/tools/git/issue-list.sh
  • packages/mosaic/framework/tools/git/pr-list.sh
  • packages/mosaic/framework/tools/git/pr-view.sh
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/git-wrapper-repo-detection:fix/git-wrapper-repo-detection
git checkout fix/git-wrapper-repo-detection
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#523