]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
scripts/patchreview: Add commit to stored json data
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 May 2022 16:54:27 +0000 (17:54 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 23 May 2022 13:00:24 +0000 (14:00 +0100)
Save commit data when writing to the json file so the results can
be copared/extended later.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/contrib/patchreview.py

index dc417b4c55b4f45c04abb006d485d8347f8c674d..002991c559cfa7e666db0ef5d2ba01fb32740c05 100755 (executable)
@@ -222,6 +222,7 @@ if __name__ == "__main__":
         row = collections.Counter()
         row["total"] = len(results)
         row["date"] = subprocess.check_output(["git", "-C", args.directory, "show", "-s", "--pretty=format:%cd", "--date=format:%s"]).decode("utf-8").strip()
+        row["commit"] = subprocess.check_output(["git", "-C", args.directory, "show", "-s", "--pretty=format:%H"]).decode("utf-8").strip()
         for r in results.values():
             if r.upstream_status in status_values:
                 row[r.upstream_status] += 1