From 6c2db43b279b0857d1302d4af8386d98f4b62b1c Mon Sep 17 00:00:00 2001 From: Nick Coutsos Date: Fri, 5 Nov 2021 21:35:48 -0400 Subject: Push commits to specified repo and branch --- application/github.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'application/github.js') diff --git a/application/github.js b/application/github.js index 314d263..0d0782c 100644 --- a/application/github.js +++ b/application/github.js @@ -83,10 +83,10 @@ export async function fetchLayoutAndKeymap(repo, branch) { } } -export function commitChanges(layout, keymap) { +export function commitChanges(repo, branch, layout, keymap) { const installationId = encodeURIComponent(installation.id) - const repository = encodeURIComponent(repositories[0].full_name) - const url = `${config.apiBaseUrl}/github/keyboard-files/${installationId}/${repository}` + const repository = encodeURIComponent(repo) + const url = `${config.apiBaseUrl}/github/keyboard-files/${installationId}/${repository}/${encodeURIComponent(branch)}` return request(url, { method: 'POST', -- cgit v1.2.3