python-gitlab / python-gitlab

A python wrapper for the GitLab API.
https://python-gitlab.readthedocs.io
GNU Lesser General Public License v3.0
2.25k stars 654 forks source link

Unable to update Slack integration from CLI #1048

Open WobblyRobbly opened 4 years ago

WobblyRobbly commented 4 years ago

Description of the problem, including code/CLI snippet

I am looking to use gitlab CLI to add Slack Notifications to my projects. I am unable to do so as there are no options available on the CLI to specify channel, url etc

Expected Behavior

I can pass the necessary parameters on the command line to allow me to set channels, webhook, username etc and have these update the specific project

Actual Behavior

The only options available on project-service update is --project-id and --id

gitlab project-service update
usage: gitlab project-service update [-h] [--sudo SUDO] --project-id
                                     PROJECT_ID --id ID
gitlab project-service update: error: the following arguments are required: --project-id, --id

Specifications

nejch commented 4 years ago

Hi @WobblyRobbly, this is one in a long line of CLI-related issues. The maintainers already discussed here https://github.com/python-gitlab/python-gitlab/issues/708 that the CLI likely needs to be reworked using a different library such as click; this would then probably help resolve your specific issue as well. I'd follow that issue for updates :)