fix(ci): separate git credentials from --git-repo URL to fix tea pr create #40
Reference in New Issue
Block a user
Delete Branch "fix/gitops-tea-url"
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?
Problem
uh-cliwas passing the full authenticated URL (https://kacerr:TOKEN@gitea.../kacerr/home-kubernetes) to--git-repo. Whentea pr createruns inside the cloned workdir it tries to auto-detect the owner/repo by matching the git remote URL against configured logins. The embeddeduser:token@in the host breaks that match, so tea can't extract the path and errors withpath segment [0] is empty.Fix
git config credential.helper store+~/.git-credentialshttps://gitea.home.hrajfrisbee.cz/kacerr/home-kubernetes) to--git-repohttps://gitea.home.hrajfrisbee.cz/...remote that correctly matches the configured login and resolveskacerr/home-kubernetesAlso adds
set -xto the PR step for shell-level tracing in CI logs.