mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot_merge: don't close PRs pointing to dummy commit
e98a8caffb
added dummy commits to the
heads of stagings and fixed most places to make a difference between
the staging head (including dummy commit) and the actual merge head,
but the difference was missed in the comment closing a PR, which was
still using the staging head and thus pointing to the dummy commit
e.g. (https://github.com/odoo/odoo/pull/26821#issuecomment-420244592)
This commit is contained in:
parent
a0063f9df0
commit
2a7a3c6167
@ -107,7 +107,8 @@ class Project(models.Model):
|
||||
prs.write({'state': 'merged'})
|
||||
for pr in prs:
|
||||
# FIXME: this is the staging head rather than the actual merge commit for the PR
|
||||
gh[pr.repository.name].close(pr.number, 'Merged in {}'.format(staging_heads[pr.repository.name]))
|
||||
staging_head = staging_heads.get(pr.repository.name + '^') or staging_heads[pr.repository.name]
|
||||
gh[pr.repository.name].close(pr.number, 'Merged in {}'.format(staging_head))
|
||||
finally:
|
||||
staging.batch_ids.write({'active': False})
|
||||
staging.write({'active': False})
|
||||
|
Loading…
Reference in New Issue
Block a user