[PATCH] scripts: Add automatic patch review script

From: Frederic Weisbecker
Date: Wed Apr 01 2020 - 17:55:30 EST


With the ever increasing volume of patches posted everyday, it has now
become hardly possible to keep up with a sane review pace, not even for
many single subsystems.

The only way to keep up to date would be to make the review process
automatic.

Now review, at a first glance, remain the last thing that can't be
automatized at all as it can only require a person to sit down and
figure out some opinion about some change.

Of course and as is often the case, an obvious and elegant solution was
waiting to be discovered. And it has been waiting since the creation of
the "Reviewed-by" tag.

All it takes is to simply generate a "Reviewed-by:" tag that you can pipe
to your favourite email sender. The script waits for a reasonably
random amount of time between each call, so that other reviewers don't
get too impressed and discouraged by how fast your CPU can make up an
opinion about a patchbomb.

Signed-off-by: Frederic Weisbecker <frederic@xxxxxxxxxx>
---
scripts/review_patch | 4 ++++
1 file changed, 4 insertions(+)
create mode 100644 scripts/review_patch

diff --git a/scripts/review_patch b/scripts/review_patch
new file mode 100644
index 000000000000..bf08dba2bf60
--- /dev/null
+++ b/scripts/review_patch
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+sleep $RANDOM
+echo "Reviewed-by: $(git config --get user.name) <$(git config --get user.email)>"
--
2.25.0