mirror of
https://github.com/odoo/runbot.git
synced 2025-05-31 13:48:00 +07:00
23 lines
645 B
Python
23 lines
645 B
Python
# -*- coding: utf-8 -*-
|
|
import re
|
|
|
|
|
|
class re_matches:
|
|
def __init__(self, pattern, flags=0):
|
|
self._r = re.compile(pattern, flags)
|
|
|
|
def __eq__(self, text):
|
|
return self._r.match(text)
|
|
|
|
def __repr__(self):
|
|
return '~' + self._r.pattern + '~'
|
|
|
|
def run_crons(env):
|
|
"Helper to run all crons (in a relevant order) except for the fetch PR one"
|
|
env['runbot_merge.project']._check_progress()
|
|
env['runbot_merge.pull_requests']._check_linked_prs_statuses()
|
|
env['runbot_merge.project']._send_feedback()
|
|
|
|
def get_partner(env, gh_login):
|
|
return env['res.partner'].search([('github_login', '=', gh_login)])
|