Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: strip host in the pr link title if calling from API (#11599)
Tianzhou (天舟)e32fefa50cba
diff --git a/frontend/src/components/IssueV1/components/Sidebar/VCSInfo.vue b/frontend/src/components/IssueV1/components/Sidebar/VCSInfo.vueindex c7db7914bf..afdf8550fa 100644--- a/frontend/src/components/IssueV1/components/Sidebar/VCSInfo.vue+++ b/frontend/src/components/IssueV1/components/Sidebar/VCSInfo.vue@@ -14,7 +14,7 @@{{ `${vcsConnector.branch}@${vcsConnector.fullPath}` }}</span><span v-else>- {{ issue.planEntity?.vcsSource?.pullRequestUrl }}+ {{ beautifyPullRequestUrl(issue.planEntity?.vcsSource) }}</span></a></EllipsisText>@@ -30,6 +30,7 @@ import {useVCSConnectorStore,useVCSProviderStore,} from "@/store";+import type { Plan_VCSSource } from "@/types/proto/v1/rollout_service";import { hasWorkspacePermissionV2, hasProjectPermissionV2 } from "@/utils";const { issue } = useIssueContext();@@ -77,6 +78,17 @@ const vcsConnector = computed(() => {);});+// Strip the host to reduce length+const beautifyPullRequestUrl = (vcs: Plan_VCSSource | undefined) => {+ if (vcs) {+ const parsedUrl = new URL(vcs.pullRequestUrl);+ return parsedUrl.pathname.length > 0+ ? parsedUrl.pathname.substring(1)+ : parsedUrl.pathname;+ }+ return "";+};+defineExpose({shown: computed(() => {return false;