diff --git a/src/pages/common-apps/CommonAppBuildPage.tsx b/src/pages/common-apps/CommonAppBuildPage.tsx
index 1247123..d82ee87 100644
--- a/src/pages/common-apps/CommonAppBuildPage.tsx
+++ b/src/pages/common-apps/CommonAppBuildPage.tsx
@@ -83,9 +83,6 @@ export function CommonAppBuildPage() {
{formatRepositoryName(pipeline.repository)}
- {isActivePipelineStatus(pipeline.status) ? (
-
- ) : null}
{pipeline.message || '-'}
diff --git a/src/pages/common-apps/CommonAppSourcePage.tsx b/src/pages/common-apps/CommonAppSourcePage.tsx
index 63bb784..2d60708 100644
--- a/src/pages/common-apps/CommonAppSourcePage.tsx
+++ b/src/pages/common-apps/CommonAppSourcePage.tsx
@@ -25,10 +25,13 @@ const commitRangeLabels: Record
= {
const commitPageSize = 5;
const branchOptions = ['develop', 'release', 'main'];
-const defaultCicdBaseUrl = 'http://192.168.0.20:8010';
function repoFullName(repo: GiteaRepo) {
- return (repo as GiteaRepo & { fullName?: string }).fullName ?? repo.full_name ?? repo.name;
+ return repo.fullName ?? repo.full_name ?? repo.name;
+}
+
+function repoHtmlUrl(repo?: GiteaRepo) {
+ return repo?.htmlUrl ?? repo?.html_url ?? '';
}
function splitRepository(repository: string) {
@@ -39,13 +42,7 @@ function splitRepository(repository: string) {
function cicdLabel(pipeline?: CommonAppPipeline) {
if (!pipeline) return '-';
- try {
- const origin = pipeline.url ? new URL(pipeline.url).origin : '';
- const baseUrl = origin && !origin.includes(':3000') ? origin : defaultCicdBaseUrl;
- return `Woodpecker / ${baseUrl}`;
- } catch {
- return `Woodpecker / ${defaultCicdBaseUrl}`;
- }
+ return pipeline.ciUrl ? `Woodpecker / ${pipeline.ciUrl}` : 'Woodpecker';
}
function commitAuthor(commit: GiteaCommit) {
@@ -258,7 +255,10 @@ export function CommonAppSourcePage() {