aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/github.js
diff options
context:
space:
mode:
Diffstat (limited to 'application/github.js')
-rw-r--r--application/github.js6
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',