From 8642f188adbb31a02021334e2016772d12c8e093 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Feb 12 2020 14:46:15 +0000 Subject: Update the configuration so no more manual changes after branching are needed Signed-off-by: Everybody Likes This --- diff --git a/fedmsg.d/simple-koji-ci-example.py b/fedmsg.d/simple-koji-ci-example.py index 81d2f17..a72c63a 100644 --- a/fedmsg.d/simple-koji-ci-example.py +++ b/fedmsg.d/simple-koji-ci-example.py @@ -1,3 +1,9 @@ +class TargetTagsDict(dict): + """A dict that returns the key for missing values""" + def __missing__(self, key): + return key + + config = { 'simple-koji-ci.enabled': True, @@ -15,14 +21,7 @@ config = { 'git_url': 'https://src.fedoraproject.org/rpms/{package}.git', 'opts': {'scratch': True}, 'priority': 30, - 'target_tags': { - 'master': 'rawhide', - 'f31': 'f31', - 'f30': 'f30', - 'f29': 'f29', - 'epel7': 'epel7', - 'el6': 'el6', - } + 'target_tags': TargetTagsDict(master='rawhide'), }, "simple-koji-ci.cache": {