ci(lts): print commit subjects instead of hash
Where the script used to print hashes, it will now print commit subject
line. Hashes made sense when the script was first created as a
prototype. Now since we will be working with uncommitted patches, hashes
don't hold useful info.
Signed-off-by: Okash Khawaja <okash@google.com>
Change-Id: I07f16f946d865f6a8c3cfb6903000c1bcc73f592
diff --git a/lts/README b/lts/README
index 34ff44c..4e9e670 100644
--- a/lts/README
+++ b/lts/README
@@ -50,24 +50,14 @@
Below is an example output. On left is commit hash of each of the commits
observed by this script and on right is score assigned to it.
-$ python lts/lts-triage.py --repo ../trusted-firmware-a/
-888eafa00b99aa06b4ff688407336811a7ff439a: 3
-79544126943a90d31d81177655be11f75330ffed: 3
-43438ad1ad6651964e9ae75d35f40aed8d86d088: 3
-028c4e42d8f632d40081b88f66d0d05c7d7c9b23: 0
-20155112c5d2fb296fef40a12b1c6ce12f49b1c8: 0
-4090ac33f44bd24d73161032faa817eb03f2e41d: 0
-cf58b2d41cb0d24239b98de98264b31690711549: 0
-e74d658181e5e69b6b5e16b40adc1ffef4c1efb9: 1
-ad6eb1951b986f30635025bbdf29e257b6b1e362: 0
-8a6a9560b5dcccfb68064c0c8c9b4b47981c6ac7: 0
-93cec697deb654303379cae8f25a31dc8b90cd31: 0
-a194255d75ed9e2ef56bd6e14349a3e7d86af934: 0
-98a43d9f6c22498d9e1a6e7ace1bc6d23ac58d5a: 0
-07dc8ba93b319de2bf0be0c287373db74019878e: 0
-c6877763cd3a286983df160c8207368174c1b820: 0
-03ebf409c711e9f2006cedded7dc415dfe566975: 1
-de7e9b562afccd6d71df1abf1907f48d164a3a7e: 0
-720e7b66f2353ef7ed32a8f85f8396fbc0766ffc: 0
-62a93aa7afcd022f06d322c36979f0aa02713beb: 0
-b5f06d3dfad8c27bdf528b083ef919ce4022c52d: 0
+$ python lts/lts-triage.py --repo ../trusted-firmware-a/ --email_path ./email.txt
+feat(errata_framework): wrappers to propagate Aarch32 errata info: 0
+feat(errata_framework): add a way to automatically report errata: 0
+feat(errata_framework): add a concise way to implement Aarch64 errata: 0
+refactor(cpus): convert print_errata_status to C: 0
+refactor(cpus): rename errata_report.h to errata.h: 0
+refactor(cpus): move cpu_ops field defines to a header: 0
+chore(fvp): add the aarch32 cortex A57 to the build: 0
+chore(cpus): remove redundant asserts: 0
+refactor(cpus): shorten errata flag defines: 0
+## stopping because found sha1 common between the two branches: 1678bbb57249b6edd4cdebc3cbc33b04df8fa098
diff --git a/lts/lts-triage.py b/lts/lts-triage.py
index 61760d9..244a2e1 100644
--- a/lts/lts-triage.py
+++ b/lts/lts-triage.py
@@ -135,10 +135,9 @@
score = score + process_ps(ps)
debug_print("# score after process_ps:", score)
- print("{}: {}".format(cmt.hexsha, score))
-
- ln = f"{cmt.summary}: {score}\n"
- file_str += ln
+ ln = f"{cmt.summary}: {score}"
+ file_str += ln + "\n"
+ print(ln)
if score > 0:
at_least_one_match = True