mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[ADD] runbot_merge: staging dependencies
This commit is contained in:
parent
cfc7478fcf
commit
9c9b312f8a
@ -357,8 +357,15 @@ class Branch(models.Model):
|
|||||||
# ensures staging branches are unique and always
|
# ensures staging branches are unique and always
|
||||||
# rebuilt
|
# rebuilt
|
||||||
r = base64.b64encode(os.urandom(12)).decode('ascii')
|
r = base64.b64encode(os.urandom(12)).decode('ascii')
|
||||||
|
trailer = ''
|
||||||
|
if heads:
|
||||||
|
trailer = '\n' + '\n'.join(
|
||||||
|
'Runbot-dependency: %s:%s' % (repo, h)
|
||||||
|
for repo, h in heads.items()
|
||||||
|
if not repo.endswith('^')
|
||||||
|
)
|
||||||
dummy_head = it['gh']('post', 'git/commits', json={
|
dummy_head = it['gh']('post', 'git/commits', json={
|
||||||
'message': 'force rebuild\n\nuniquifier: %s' % r,
|
'message': 'force rebuild\n\nuniquifier: %s%s' % (r, trailer),
|
||||||
'tree': tree['sha'],
|
'tree': tree['sha'],
|
||||||
'parents': [it['head']],
|
'parents': [it['head']],
|
||||||
}).json()
|
}).json()
|
||||||
|
Loading…
Reference in New Issue
Block a user