diff options
author | Nick Coutsos <[email protected]> | 2021-11-05 21:35:48 -0400 |
---|---|---|
committer | Nick Coutsos <[email protected]> | 2021-11-05 21:35:48 -0400 |
commit | 6c2db43b279b0857d1302d4af8386d98f4b62b1c (patch) | |
tree | f4bd89db949a3c1d3d87aad5dececaa35f17d2bf /application/github.js | |
parent | 8b2eb322a096ee3564e06c8be5dcb2302ff9ae8c (diff) | |
download | keymap-editor-6c2db43b279b0857d1302d4af8386d98f4b62b1c.tar.gz keymap-editor-6c2db43b279b0857d1302d4af8386d98f4b62b1c.zip |
Push commits to specified repo and branch
Diffstat (limited to 'application/github.js')
-rw-r--r-- | application/github.js | 6 |
1 files changed, 3 insertions, 3 deletions
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', |