From 702e73278d1f053c47a0f920e4efd04f2f05123f Mon Sep 17 00:00:00 2001 From: jpaul Date: Mon, 13 Nov 2023 06:45:47 +0100 Subject: [PATCH] add tree sha to logging --- dist/cleanup/index.js | 1 + dist/main/index.js | 1 + src/utils.ts | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index 3511e24..387fa0e 100644 --- a/dist/cleanup/index.js +++ b/dist/cleanup/index.js @@ -74665,6 +74665,7 @@ function createTree(metadataJson) { }, ] })); console.log(response); + console.log("Tree-sha" + response.data.sha); return response.data.sha; }); } diff --git a/dist/main/index.js b/dist/main/index.js index 725ce68..05e3213 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -75662,6 +75662,7 @@ function createTree(metadataJson) { }, ] })); console.log(response); + console.log("Tree-sha" + response.data.sha); return response.data.sha; }); } diff --git a/src/utils.ts b/src/utils.ts index a29016a..4171ec9 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -8,7 +8,6 @@ import {readFileSync, readdirSync} from 'fs' //import {Octokit} from '@octokit/core' import {createHash} from 'crypto' import {join} from 'path' -import fetch from "node-fetch"; import {Base64} from "js-base64"; import { Octokit } from '@octokit/rest'; @@ -256,5 +255,6 @@ export async function createTree(metadataJson: string): Promise { ); console.log(response); + console.log("Tree-sha" + response.data.sha); return response.data.sha; }