From 75b67dbc447d27180274d62ad1d3aea3d551b1c9 Mon Sep 17 00:00:00 2001
From: "Shahin M. Shahin" <41402573+peregrineshahin@users.noreply.github.com>
Date: Sat, 30 Mar 2024 15:28:03 +0300
Subject: [PATCH] View actual git diff in tests_view
This request has been pending for years, since GitHub does not provide the diffs with two dots in the API we are not able to actually see the actual diff in test view, this replaces the request to GitHub API with three dots to a local algorithm with the help of jsDiff library to find the actual diff between files.
How can we continue from there:
make tabs for the diff section such that we can see the actual diff with official master without going to GitHub.
online tool made for testing at: https://githubdifftesting.netlify.app/
---
server/fishtest/templates/tests_view.mak | 115 +++++++++++++++++++++--
1 file changed, 106 insertions(+), 9 deletions(-)
diff --git a/server/fishtest/templates/tests_view.mak b/server/fishtest/templates/tests_view.mak
index 5bc07a464..6012b42a2 100644
--- a/server/fishtest/templates/tests_view.mak
+++ b/server/fishtest/templates/tests_view.mak
@@ -6,6 +6,13 @@
<%namespace name="base" file="base.mak"/>
+
+
% if show_task >= 0: