diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:27:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:27:58 +0000 |
commit | 3aecc6d0a8d757d6159dfa5083f1b254296c5b43 (patch) | |
tree | 3a305eb312ed47a1ac8967170ea1d45bb3c208be /filter-example.py | |
parent | Initial commit. (diff) | |
download | irker-3aecc6d0a8d757d6159dfa5083f1b254296c5b43.tar.xz irker-3aecc6d0a8d757d6159dfa5083f1b254296c5b43.zip |
Adding upstream version 2.23+dfsg.upstream/2.23+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | filter-example.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/filter-example.py b/filter-example.py new file mode 100755 index 0000000..922f941 --- /dev/null +++ b/filter-example.py @@ -0,0 +1,13 @@ +#!/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 |