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

"webhook add" only allows either URL or repository (not both) #51

Open
sumpfralle opened this issue Aug 9, 2021 · 1 comment
Open

Comments

@sumpfralle
Copy link
Contributor

sumpfralle commented Aug 9, 2021

Currently the following command is rejected with a syntax error:

!gitlab webhook add SOME_ALIAS REPOSITORY/PATH/

The error message is the following:

Usage: !webhook add [server URL or alias] [repository]

The error message is confusing, since it seems to allow to specify a server alias (or URL) followed by the repository.
But in fact it seems to allow only one of these two optional arguments.

Thus the following should be more appropriate:

Usage: !webhook add [server URL or alias | repository]

Of course it would be even better to allow both a URL and a repository. Maybe keyword-based assignments (e.g. server=foo repo=something/) could make this possible.

@wolfspyre
Copy link

I believe the issue is that the webhook add command only works when issued as:
!gitlab webhook add https://gitlab-host-fqdn-here path/to/repo/to/webhookify

it doesn't seem to work with aliases or just hostnames... needs the proto too.

ADDITIONALLY the help dialog asserts the command is '!webhook' which is misleading, as it only works as !gitlab webhook ...

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

No branches or pull requests

2 participants