From 43ce0dadea22591e0045e14a6f24d825c80052fc Mon Sep 17 00:00:00 2001 From: wangyantong <135088663+wangyantong2000@users.noreply.github.com> Date: Mon, 30 Sep 2024 13:35:41 +0800 Subject: [PATCH] feat: change oss base url (#882) --- src/api/common.ts | 8 ++++---- src/constant.ts | 2 +- .../ContentScripts/features/repo-pr-tooltip/index.tsx | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/api/common.ts b/src/api/common.ts index efe19c8c..15c3e87a 100644 --- a/src/api/common.ts +++ b/src/api/common.ts @@ -3,7 +3,7 @@ import request from '../helpers/request'; export const getMetricByName = async (owner: string, metricNameMap: Map, metric: string) => { try { - return await request(`${OSS_XLAB_ENDPOINT}/open_digger/github/${owner}/${metricNameMap.get(metric)}.json`); + return await request(`${OSS_XLAB_ENDPOINT}/github/${owner}/${metricNameMap.get(metric)}.json`); } catch (error) { // the catched error being "404" means the metric file is not available so return a null if (error === ErrorCode.NOT_FOUND) { @@ -17,8 +17,8 @@ export const getMetricByName = async (owner: string, metricNameMap: Map