From 4820638c44862e70275170c2ca1055ef0ad3865b Mon Sep 17 00:00:00 2001 From: zhangtao25 Date: Mon, 18 Nov 2024 20:49:40 +0800 Subject: [PATCH] chore: repo overall update --- tools/canyon-uploader/README.md | 2 ++ tools/canyon-uploader/package.json | 2 +- tools/canyon-uploader/src/commands/hit.ts | 5 +++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/canyon-uploader/README.md b/tools/canyon-uploader/README.md index d67213be..00799147 100644 --- a/tools/canyon-uploader/README.md +++ b/tools/canyon-uploader/README.md @@ -25,3 +25,5 @@ canyon-uploader map --dsn=http://localhost:8080/coverage/client canyon-uploader map --dsn=http://localhost:8080/coverage/client --project_id=1 --instrument_cwd=/Users/xxx/xxx --sha=0521a99225c799f2e62439a6c1f3c884fbdb65cc ./bin/canyon-uploader map --dsn=http://localhost:8080/coverage/map/client --project_id=1 --instrument_cwd=/Users/xxx/xxx --sha=8ae63737150959dd7a1517735e1069adb4a0b6fc + +./bin/canyon-uploader hit --dsn=http://localhost:8080/coverage/client diff --git a/tools/canyon-uploader/package.json b/tools/canyon-uploader/package.json index 71126fab..7fc9dfe3 100644 --- a/tools/canyon-uploader/package.json +++ b/tools/canyon-uploader/package.json @@ -1,6 +1,6 @@ { "name": "canyon-uploader", - "version": "0.0.1-beta.17", + "version": "0.0.1-beta.18", "files": [ "bin", "dist" diff --git a/tools/canyon-uploader/src/commands/hit.ts b/tools/canyon-uploader/src/commands/hit.ts index bb28118a..8e6899f3 100644 --- a/tools/canyon-uploader/src/commands/hit.ts +++ b/tools/canyon-uploader/src/commands/hit.ts @@ -45,12 +45,13 @@ export async function hitCommand(params, options) { // console.log(map); return Promise.all(Object.entries(map).map( ([key, value]) => { const {sha,projectID,instrumentCwd,reportID} = JSON.parse(key); + console.log(sha,projectID,instrumentCwd,reportID); return axios.post(dsn, { - sha: sha, + sha: '93c7779af32f4dd37162d59bdf4ba8b72dc9df5e', projectID: projectID, coverage: value[0], instrumentCwd: instrumentCwd, - branch: "", + branch: "-", reportID: reportID, }) }))