How to set up a review with a Github repository?

I'm having trouble setting up the overview panel.

  • If I immediately select GitHub as a hosting service, I always get "bad credentials" when linking to github with a new account.
  • If I chose hosting for "No - Custom Repository", the repository type is "Git", I don’t know how to set the raw file url for Github.

I was not able to get it to work anyway, any help? Thanks.

+4
source share
1 answer

You need to clone the git repository on the host hosting your bulletin board server. Let's say you make a git repo clone in /home/username/repo/repository .

Go to the .git directory in your repository. In this case, it will be /home/username/repo/repository/.git This is the directory that you need to specify in the settings of your repository in the ReviewBoard admin portal. Please note: one of the problems with this method is that you will have to manually update the git repository whenever someone pushes any changes to it.

Another way is to use cgit or gitweb. But this requires some configuration on the git server side, which may not be possible if you do not support the central git repository yourself.

I am currently using the first method of having git repos on a ReviewBoard server and automatically updating them with a cron job.

+1
source

Source: https://habr.com/ru/post/1494400/


All Articles