mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[IMP] runbot_merge: note on behalf of which commit a staging was created
Closes #329
This commit is contained in:
parent
7e49b4cd2b
commit
9dbd0ac623
@ -436,13 +436,17 @@ class Branch(models.Model):
|
|||||||
r = base64.b64encode(os.urandom(12)).decode('ascii')
|
r = base64.b64encode(os.urandom(12)).decode('ascii')
|
||||||
trailer = ''
|
trailer = ''
|
||||||
if heads:
|
if heads:
|
||||||
trailer = '\n' + '\n'.join(
|
trailer = '\n'.join(
|
||||||
'Runbot-dependency: %s:%s' % (repo, h)
|
'Runbot-dependency: %s:%s' % (repo, h)
|
||||||
for repo, h in heads.items()
|
for repo, h in heads.items()
|
||||||
if not repo.endswith('^')
|
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%s' % (r, trailer),
|
'message': '''force rebuild
|
||||||
|
|
||||||
|
uniquifier: %s
|
||||||
|
For-Commit-Id: %s
|
||||||
|
%s''' % (r, it['head'], trailer),
|
||||||
'tree': tree['sha'],
|
'tree': tree['sha'],
|
||||||
'parents': [it['head']],
|
'parents': [it['head']],
|
||||||
}).json()
|
}).json()
|
||||||
|
Loading…
Reference in New Issue
Block a user