Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az repos show should auto-detect --repository via git config #28292

Closed
MattKotsenas opened this issue Feb 2, 2024 · 2 comments
Closed

az repos show should auto-detect --repository via git config #28292

MattKotsenas opened this issue Feb 2, 2024 · 2 comments
Labels
Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. DevOps Service Attention This issue is responsible by Azure service team.

Comments

@MattKotsenas
Copy link

Related command

az repos show

Is your feature request related to a problem? Please describe.

I work across many repos, and it's often useful to jump to the Azure DevOps repo that corresponds to a locally cloned repository.

It would be nice if I could run az repos show --open and have the CLI automatically detect the repository from the git config, as it does for --org and --project. Instead, I have to pass the repository name explicitly via the --repository parameter.

Describe the solution you'd like

I would like for --repository to be auto-detected when inside a git repo, as it already is for --organization and --project.

Describe alternatives you've considered

Currently I have a cumbersome PowerShell workaround like this:

az repos show --open --repository "$(((git config --get remote.origin.url) -split '_git/')[-1])"

Additional context
None

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Service Attention This issue is responsible by Azure service team. DevOps labels Feb 2, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Feb 2, 2024

Thank you for opening this issue, we will look into it.

@MattKotsenas
Copy link
Author

Closing in favor of Azure/azure-devops-cli-extension#1397

@MattKotsenas MattKotsenas closed this as not planned Won't fix, can't repro, duplicate, stale Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. DevOps Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

2 participants