From 4b4cee8ebb4c295ecf5c871de29929703d2e95b7 Mon Sep 17 00:00:00 2001
From: Michael Telatynski <7t3chguy@gmail.com>
Date: Wed, 27 Apr 2022 22:50:28 +0100
Subject: [PATCH] Update fetchdep to also take into account forks

---
 scripts/fetchdep.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/fetchdep.sh b/scripts/fetchdep.sh
index 9091a2ba..3725eff3 100755
--- a/scripts/fetchdep.sh
+++ b/scripts/fetchdep.sh
@@ -29,7 +29,7 @@ getPRInfo() {
     if [ -n "$number" ]; then
         echo "Getting info about a PR with number $number"
 
-        apiEndpoint="https://api.github.com/repos/matrix-org/matrix-react-sdk/pulls/"
+        apiEndpoint="https://api.github.com/repos/${REPOSITORY:-"vector-im/element-desktop"}/pulls/"
         apiEndpoint+=$number
 
         head=$(curl $apiEndpoint | jq -r '.head.label')