1
0
Fork 0
irker/filter-example.py
Daniel Baumann 1e97beb507
Adding upstream version 2.23+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 08:03:52 +02:00

13 lines
337 B
Python
Executable file

#!/usr/bin/env python3
# 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