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

[CLI] Get repos from git remotes #910

Closed
3 tasks done
qwerty287 opened this issue May 13, 2022 · 2 comments · Fixed by #3830
Closed
3 tasks done

[CLI] Get repos from git remotes #910

qwerty287 opened this issue May 13, 2022 · 2 comments · Fixed by #3830
Labels
cli feature add new functionality

Comments

@qwerty287
Copy link
Contributor

Clear and concise description of the problem

Instead of having to add the repo as arguments to every repo-related command, it would be nice if the CLI could determine the repo itself using the git remotes.

Suggested solution

See above.

Alternative

No response

Additional context

No response

Validations

@qwerty287 qwerty287 added feature add new functionality cli labels May 13, 2022
@anbraten
Copy link
Member

anbraten commented May 14, 2022

Do you have something like an auto-detect mechanism in mind which uses the git remote and searches the woodpecker db by that to know which project you are in?

@qwerty287
Copy link
Contributor Author

qwerty287 commented May 14, 2022

In general yes, but you can determine the repo from the remote URL and then can use this instead of the CLI argument (if it's not given) - you only need to search if there are multiple remotes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli feature add new functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants