summaryrefslogtreecommitdiffstats
path: root/filter-example.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 10:31:25 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 10:31:25 +0000
commit14f323399c9652058a65970f37c334d6f6664951 (patch)
treec896330997503fc4a0b22ce70ba2702416e29eaa /filter-example.py
parentInitial commit. (diff)
downloadirker-14f323399c9652058a65970f37c334d6f6664951.tar.xz
irker-14f323399c9652058a65970f37c334d6f6664951.zip
Adding upstream version 2.19+dfsg.upstream/2.19+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xfilter-example.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/filter-example.py b/filter-example.py
new file mode 100755
index 0000000..12908b4
--- /dev/null
+++ b/filter-example.py
@@ -0,0 +1,13 @@
+#!/usr/bin/env python
+# This is a trivial example of a metadata filter.
+# All it does is change the name of the commit's author.
+# It could do other things, including modifying the
+# channels list
+#
+import sys, json
+metadata = json.loads(sys.argv[1])
+
+metadata['author'] = "The Great and Powerful Oz"
+
+print json.dumps(metadata)
+# end