bb_detect_repo
Detect a Bitbucket repo from any local folder by reading its .git remote origin URL; if absent, search up to two folder levels and list candidate repos.
Instructions
Given a project folder (relative to CWD or absolute), find its .git directory, read git remote get-url origin, and parse out the Bitbucket project key + repo slug. When the folder isn't itself a git repo, it searches the folder's children (up to 2 levels) for a git repo. If more than one is found, it lists the candidates and you must re-invoke with one of them. Returns { projectKey, repoSlug, remoteUrl, resolvedDir }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | Project name (relative to CWD) or absolute directory path, e.g. "tata_rasad" or "D:\Work\tata_rasad". Required. |