From 484c652719b8b036d44701adb3408bf75e88f508 Mon Sep 17 00:00:00 2001
From: chris48s <chris48s@users.noreply.github.com>
Date: Tue, 22 Sep 2020 19:15:27 +0100
Subject: [PATCH] use HEAD ref in [github] fetchJsonFromRepo (#5589)

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
---
 services/github/github-common-fetch.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/services/github/github-common-fetch.js b/services/github/github-common-fetch.js
index 861facaa49..7c216b274b 100644
--- a/services/github/github-common-fetch.js
+++ b/services/github/github-common-fetch.js
@@ -55,7 +55,7 @@ async function fetchRepoContent(
 
 async function fetchJsonFromRepo(
   serviceInstance,
-  { schema, user, repo, branch = 'master', filename }
+  { schema, user, repo, branch = 'HEAD', filename }
 ) {
   if (serviceInstance.staticAuthConfigured) {
     const buffer = await fetchRepoContent(serviceInstance, {
-- 
GitLab