summaryrefslogtreecommitdiffstats
path: root/third_party/rust/jsparagus/.metrics/not_implemented_badge.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/jsparagus/.metrics/not_implemented_badge.py')
-rw-r--r--third_party/rust/jsparagus/.metrics/not_implemented_badge.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/third_party/rust/jsparagus/.metrics/not_implemented_badge.py b/third_party/rust/jsparagus/.metrics/not_implemented_badge.py
new file mode 100644
index 0000000000..bc522f1fe3
--- /dev/null
+++ b/third_party/rust/jsparagus/.metrics/not_implemented_badge.py
@@ -0,0 +1,14 @@
+#!/usr/bin/python
+import json
+import os.path
+
+filename = 'badges/not-implemented.json'
+total_count = os.environ['total_count']
+data = {
+ "schemaVersion": 1,
+ "label": "NotImplemented",
+ "message": total_count,
+ "color": "green" if total_count == "0" else "yellow",
+}
+with open(filename, 'w') as f:
+ json.dump(data, f, indent=4)