V3 preview (#53)

* Covert to use ncc, publish under name Labeler

* Get the filename right
This commit is contained in:
David Kale
2020-03-05 12:57:26 -05:00
committed by GitHub
parent 58187b6094
commit d2c408e7ed
11 changed files with 31673 additions and 1340 deletions

View File

@@ -89,14 +89,14 @@ async function fetchContent(
client: github.GitHub,
repoPath: string
): Promise<string> {
const response = await client.repos.getContents({
const response: any = await client.repos.getContents({
owner: github.context.repo.owner,
repo: github.context.repo.repo,
path: repoPath,
ref: github.context.sha
});
return Buffer.from(response.data.content, 'base64').toString();
return Buffer.from(response.data.content, response.data.encoding).toString();
}
function getLabelGlobMapFromObject(configObject: any): Map<string, string[]> {