builds: refuse to submit >4 builds at once

This commit is contained in:
Drew DeVault 2020-08-21 09:34:10 -04:00
parent 0e11b08d4c
commit fb3b4999fc
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@ def submit_patchset(ml, payload):
manifests = git.get_manifests(repo.owner, repo.remote_id)
if not manifests:
return None
if len(manifests) > 4:
manifests = manifests[:4]
ids = []
version = payload["version"]