Skip to content
Snippets Groups Projects
Unverified Commit fe1580bf authored by Karlinde's avatar Karlinde Committed by GitHub
Browse files

Fill in the 'default' field for user-defined push rules (#6639)


Signed-off-by: default avatarKarl Linderhed <git@karlinde.se>
parent b994e86e
No related branches found
No related tags found
No related merge requests found
Fix missing field `default` when fetching user-defined push rules.
......@@ -41,6 +41,7 @@ def _load_rules(rawrules, enabled_map):
rule = dict(rawrule)
rule["conditions"] = json.loads(rawrule["conditions"])
rule["actions"] = json.loads(rawrule["actions"])
rule["default"] = False
ruleslist.append(rule)
# We're going to be mutating this a lot, so do a deep copy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment