From d7c4aeea508e2d3aef4e8da5617161c045ee5a58 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Wed, 1 Jun 2022 10:50:14 -0500 Subject: [PATCH] Specify custom media type to retrieve larger files Closes #3 --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 2cb66e2..5581356 100644 --- a/index.js +++ b/index.js @@ -13,6 +13,9 @@ const repo = repository.split('/')[1] function getContent(path) { octokit.repos.getContent({ + mediaType: { + format: "raw", + }, owner, repo, path,