Comparing version 0.1.1 to 0.1.2
@@ -85,6 +85,6 @@ const axios = require("axios"); | ||
} | ||
filePath = util.trimSlashes(filePath); | ||
const encodedFilePath = encodeURIComponent(util.trimSlashes(filePath)); | ||
const url = `${this.getProjectUrl( | ||
projectIdentifier | ||
)}/contents/${filePath}?ref=${branchName}`; | ||
)}/contents/${encodedFilePath}?ref=${branchName}`; | ||
try { | ||
@@ -141,3 +141,3 @@ if (this.VERBOSE) console.log(`GET > ${url}`); | ||
try { | ||
if (this.VERBOSE) console.log(`POST > ${url}`); | ||
if (this.VERBOSE) console.log(`POST > ${fileBlobUrl}`); | ||
const blobs = []; | ||
@@ -163,3 +163,3 @@ for (const action of commitObject.actions) { | ||
tree: blobs.map((b) => ({ | ||
path: b.file_path, | ||
path: util.trimSlashes(b.file_path), | ||
mode: "100644", | ||
@@ -166,0 +166,0 @@ type: "blob", |
{ | ||
"name": "github-x", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "GitHub Executor API Interface", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/mxcd/github-x", |
30829