From fb3b4999fc95c45065f15bd070c729b62b67bde0 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 21 Aug 2020 09:34:10 -0400 Subject: [PATCH] builds: refuse to submit >4 builds at once --- hubsrht/builds.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hubsrht/builds.py b/hubsrht/builds.py index 2f5086c..cb65e10 100644 --- a/hubsrht/builds.py +++ b/hubsrht/builds.py @@ -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"]