michalrus / gitlab-ci-bot

A GitLab bot enforcing code review of each Merge (Pull) Request
31 stars 4 forks source link

Instructions #2

Open DevanB opened 8 years ago

DevanB commented 8 years ago

Hey there! I'm super interested in using this, however I'm new to GitLab and your documentation is only an image.

How exactly is this used? Do you add it to GitLab? Does it run externally of GitLab? Do you have any setup instructions? If not, can you write up some quick ones?

Thanks!

acdcjunior commented 8 years ago

I second @DevanB. I'm very interested, but have no idea (found no docs on gitlab/google about custom plugins or similar) on how to set it up.

GitRubb commented 8 years ago

I guess I'll be May's monthly post here....How do you install this thing????

katzien commented 8 years ago

From what I gathered looking at the source code you might just have to run the ci-bot file (it's a perl file) which will start a webserver. Not sure if it has to be run on the same server as your gitlab instance or if it can be any as long as it has the necessary permissions to talk to the gitlab server and db...

Also not sure if you need to configure webhooks to be sent to your ci-bot webserver every time a MR is created?

hjanuschka commented 8 years ago

have a look at https://github.com/hjanuschka/GitlabBot does pretty much the same :) - PR's are welcome

@katzien @GitRubb @acdcjunior

acdcjunior commented 8 years ago

@hjanuschka Ok, thanks for letting us know. That repo, though, seems to suffer from the same problem: how to install? That readme could be a lot clearer.

hjanuschka commented 8 years ago

@acdcjunior ok sry, i did a readme now 🚀

https://github.com/hjanuschka/GitlabBot

michalrus commented 7 years ago

Hey, everyone!

Sorry for missing these, blame my mail filters.

@katzien is right, you have to run the file, and the add it’s URL (internal/external—this answers your questions, too) to the GitLab’s hook settings, as an administrator, I think. Then it works.

If you want it to run on some other machine than GitLab’s Postgres, you’ll have to modify the sub query. Sorry for the roughness, but it was just a quick hack solution that we needed immediately. :stuck_out_tongue:

@hjanuschka, awesome! The more the merrier. :heart_eyes_cat: Let’s make software development experience great!