Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 2

Help with GitHub webhook to reviewboard

Solved! Go to Solution.
Hi, I have repository setup at github and it's got a webhook to reviewboard 3.0 and I receive a 200 OK response from GitHub when testing.
The reviewboard server is on premise.

I have followed the directions here https://www.reviewboard.org/docs/manual/3.0/admin/configuration/repositories/github/
which seem to indicate once the webhook is inserted in the github repository everything will work.

I would like to have reviewboard send out a review request with a link to a diff when a person has made a commit/push to the github repository.
I would also like to have reviewboard send out a notice when someone has reviewed a commit on reviewboard.

With a Git repository there is a .git/hooks directory where the hooks are located and called. With GitHub
Is there a directory where github hooks are located on the reviewboard server so when a commit/push is made they are called?

Does the mydomain.com url below need to reference the webhook by name?

The payload url from reviewboard is this according to the instructions.
https://mydomain.com/reviewboard/repos/3/github/hooks/close-submitted/

Instructions say to include the information below when closing a commit.
Review Request #123

I make a commit and push it to github. The commit succeeds but that's all. It's not clear how to get a review from it.
Thanks, Ron


1 Reply
Solution
Community Manager
Message 2 of 2

Re: Help with GitHub webhook to reviewboard

Thanks for reaching out.

 

If you need help configuring reviewboard, you may want to contact their support resources instead. We don't have any experience configuring reviewboard and won't be able to help with that.

 

From your description, it sounds like the webhook is being sent properly, so I'm not sure what else we can do there.

 

The `.git/hooks` directory is not the same thing as GitHub webhooks. The git hooks feature allows you to add code to customize the behavior of a git repository in specific ways. GitHub webhooks notify external services of specific repository events so those services can do something based on that input. The two features can be used in similar ways. On the other hand, they can be used in very dissimilar ways.

 

I hope that helps. Let us know if you have more questions.