Add TBR to the WebRTC code freshness updater and send to CQ.

No-Try: True
No-Presubmit: True
Bug: webrtc:12159
Change-Id: Ia8db420f779e3d9140208db7cf47e4632a1c19b5
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/197625
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#32828}
This commit is contained in:
Mirko Bonadei
2020-12-14 21:45:37 +01:00
committed by Commit Bot
parent 2412602b68
commit a6c236f933

View File

@ -98,10 +98,15 @@ def _IsTreeClean():
def _LocalCommit():
logging.info('Committing changes locally.')
d = datetime.datetime.utcnow()
git_author = subprocess.check_output(['git', 'config',
'user.email']).strip()
tbr_authors = git_author + ',' + 'mbonadei@webrtc.org'
tbr = 'TBR=%s' % tbr_authors
commit_msg = ('Update WebRTC code version (%02d-%02d-%02dT%02d:%02d:%02d).'
'\n\nBugs: None')
'\n\nTBR=%s\nBugs: None')
commit_msg = commit_msg % (d.year, d.month, d.day, d.hour, d.minute,
d.second)
d.second, tbr_authors)
subprocess.check_call(['git', 'add', '--update', '.'])
subprocess.check_call(['git', 'commit', '-m', commit_msg])
@ -145,7 +150,7 @@ def main():
else:
_LocalCommit()
logging.info('Uploading CL...')
_UploadCL(1)
_UploadCL(2)
return 0