mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[FIX] runbot: allow webhooks to work
This commit is contained in:
parent
21c31b4c3c
commit
bd715451a9
@ -8,7 +8,7 @@ from odoo.http import request
|
|||||||
|
|
||||||
class RunbotHook(http.Controller):
|
class RunbotHook(http.Controller):
|
||||||
|
|
||||||
@http.route(['/runbot/hook/<int:repo_id>'], type='http', auth="public", website=True)
|
@http.route(['/runbot/hook/<int:repo_id>'], type='http', auth="public", website=True, csrf=False)
|
||||||
def hook(self, repo_id=None, **post):
|
def hook(self, repo_id=None, **post):
|
||||||
# TODO if repo_id == None parse the json['repository']['ssh_url'] and find the right repo
|
# TODO if repo_id == None parse the json['repository']['ssh_url'] and find the right repo
|
||||||
repo = request.env['runbot.repo'].sudo().browse([repo_id])
|
repo = request.env['runbot.repo'].sudo().browse([repo_id])
|
||||||
|
Loading…
Reference in New Issue
Block a user