mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] forwardport: check fwbot approval for a conflicting PR
A conflicting forward port should not be approvable via fwbot, it should be merged like a novel PR (via the mergebot).
This commit is contained in:
parent
65ed7c51bc
commit
2c177c83f6
@ -93,6 +93,10 @@ In the former case, you may want to edit this PR message as well\.
|
||||
More info at https://github\.com/odoo/odoo/wiki/Mergebot#forward-port
|
||||
''', re.DOTALL))
|
||||
]
|
||||
with prod:
|
||||
prc.post_comment(f'@{project.fp_github_name} r+', config['role_reviewer']['token'])
|
||||
env.run_crons()
|
||||
assert prc_id.state == 'opened', "approving via fw should not work on a conflict"
|
||||
|
||||
prb = prod.get_pr(prb_id.number)
|
||||
assert prb.comments == [
|
||||
|
Loading…
Reference in New Issue
Block a user