mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-05-12 02:46:57 +08:00
Do not check Greenwave gating status for scratch builds.
Scratch builds cannot be gated. They stay in the `done` state forever. Therefore it is useless to query Greenwave for its status in the Poller.
This commit is contained in:
@@ -1007,7 +1007,7 @@ def submit_module_build(db_session, username, mmd, params):
|
||||
# In case the branch is defined, check whether user is allowed to submit
|
||||
# non-scratch build from this branch. Note that the branch is always defined
|
||||
# for official builds from SCM, because it is requested in views.py.
|
||||
branch = params.get("branch", None)
|
||||
branch = params.get("branch")
|
||||
if branch:
|
||||
for regex in conf.scratch_build_only_branches:
|
||||
branch_search = re.search(regex, branch)
|
||||
|
||||
Reference in New Issue
Block a user