You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please add a CLI option to auto-detect GITLAB (for -g argument) and project ID from the current git repo the gitlab command is run from. I implemented a shell wrapper around gitlab that basically would do the following:
git remote get-url $(git remote)
match the host of the above URL with entries in ~/.python-gitlab.cfg to get the GITLAB name
Use the last part of the remote URL as project ID
There might be a case of multiple remotes on the git repo., I would suggest adding --git-remote REMOTE argument for such case
The text was updated successfully, but these errors were encountered:
Hey @aelmahmoudy, thanks for the request. I'm not sure about this as we're more of an API client and CLI, rather than a git workflow tool, and this would require reading git config.
I wouldn't prioritize this, but if you provide a PR that doesn't add any dependencies (especially as this would require calling git) I'm open to reviewing it!
Please add a CLI option to auto-detect GITLAB (for -g argument) and project ID from the current git repo the gitlab command is run from. I implemented a shell wrapper around gitlab that basically would do the following:
There might be a case of multiple remotes on the git repo., I would suggest adding
--git-remote REMOTE
argument for such caseThe text was updated successfully, but these errors were encountered: