mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 15:35:46 +07:00
[FIX] runbot_cla: correct odoo email regex
This commit is contained in:
parent
a31109ffe7
commit
96ee611021
@ -21,7 +21,7 @@ class runbot_build(openerp.models.Model):
|
||||
state = "failure"
|
||||
if mo:
|
||||
email = mo.group(0).lower()
|
||||
if re.match('.*(odoo|openerp|tinyerp).com$',email):
|
||||
if re.match('.*@(odoo|openerp|tinyerp)\.com$', email):
|
||||
state = "success"
|
||||
if cla.find(email) != -1:
|
||||
state = "success"
|
||||
@ -36,4 +36,3 @@ class runbot_build(openerp.models.Model):
|
||||
build.repo_id.github('/repos/:owner/:repo/statuses/%s' % build.name, status, ignore_errors=True)
|
||||
# 0 is myself, -1 is everybody else, -2 nothing
|
||||
return -2
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user