mattermost-plugin-gitlab icon indicating copy to clipboard operation
mattermost-plugin-gitlab copied to clipboard

Adding multiple repos won't be reflected

Open kominoshja opened this issue 5 years ago • 5 comments

First of, let me write this appreciation message! We love this plugin.

The problem we have is that when we add the webhook to many repos, the plugin will only show the first repo where the webhook was added. I've tried reenabling the plugin, restarting mattermost, readding the webhoo, but it all fails. Is this a bug or am I doing something wrong?

kominoshja avatar Aug 22 '19 10:08 kominoshja

@kominoshja Thanks for trying out the plugin!

The problem we have is that when we add the webhook to many repos

For this, I want to confirm my understanding -- do you mean you're setting up a separate webhook for each of your GitLab projects/repos?

Or do you mean you use /gitlab subscribe command in Mattermost to subscribe one channel to receive webhook posts from multiple GitLab projects/repos?

jasonblais avatar Aug 24 '19 16:08 jasonblais

Hi again @jasonblais

Just to confirm yes, I'm setting up the same webhook on different repos. It could be possible that I am doing something wrong though

kominoshja avatar Sep 02 '19 19:09 kominoshja

@kominoshja I've set mine up the same way. Every repo over different namespaces has the web hook enabled, but you will always have to subscribe to the repo (/gitlab subscribe namespace/repo) once the web hook is added under the channel you want notifications to be pushed to.

Unfortunately, GitLab has a service template, but it only takes a username, not a token. That would be a winner for multiple repos if it also accepted a token without a username.

octoquad avatar Oct 22 '19 16:10 octoquad

@octoquad sadly, I can't /gitlab subscribe because I run into #65

kominoshja avatar Oct 28 '19 11:10 kominoshja

@kominoshja https://github.com/mattermost/mattermost-plugin-gitlab/issues/65 is now fixed. Does this help you?

hanzei avatar Mar 07 '20 16:03 hanzei

Closing due to inactivity. Issue can be reopened with more interest from our community.

wiersgallak avatar Jun 14 '23 01:06 wiersgallak