Support scraping SHA1s from GitHub

Change-Id: I02eea55d4d475f42b12606ee1d17f95f3b76e13d
diff --git a/scripts/fetch-SHAs.sh b/scripts/fetch-SHAs.sh
index f2967f9..52d13da 100755
--- a/scripts/fetch-SHAs.sh
+++ b/scripts/fetch-SHAs.sh
@@ -49,6 +49,8 @@
     gitURL="https://git.eclipse.org/c/webtools-common/webtools.common.git/commit/?h=${branch}"
   elif [[ ${d} == "javaee" ]]; then
     gitURL="https://git.eclipse.org/c/jeetools/webtools.javaee.git/commit/?h=${branch}"
+  elif [[ ${d} == "jsdt" ]]; then
+    gitURL="https://github.com/eclipse-jsdt/webtools.jsdt/commits/"${branch}"
   else
     gitURL="https://git.eclipse.org/c/${d}/webtools.${d}.git/commit/?h=${branch}"
   fi
@@ -57,7 +59,13 @@
 
   jobSHA=$(wget -q ${jobURL} -O- | sed -e "s#.*<SHA1>\(.\+\)</SHA1>.*#\1#")
   logn "$d :: $jobSHA (last successful job)"
-  gitSHA=$(wget -q ${gitURL} -O- | grep "<th>commit</th>" | sed -e "s#.*?id=\(.\+\)'>.*#\1#")
+
+  if [[ ${d} == "jsdt" ]]; then
+    gitSHA=$(curl $gitURL|grep '\/commit\/.*permalink'|cut -f5- -d\/|cut -f1 -d\")
+  else
+    gitSHA=$(wget -q ${gitURL} -O- | grep "<th>commit</th>" | sed -e "s#.*?id=\(.\+\)'>.*#\1#")
+  fi
+
   if [[ ${gitSHA} !=  ${jobSHA} ]]; then
     bwpURL="https://ci.eclipse.org/webtools/job/webtools-${d}_${branch}/buildWithParameters?token=CI-BUILD"
     if [[ $quiet == 0 ]]; then