From beb9dda8c6ff9253d423f970b770f749e03706d0 Mon Sep 17 00:00:00 2001 From: chyoo Date: Wed, 8 Jul 2026 18:14:02 +0900 Subject: [PATCH] connect tailscale node status through platform gateway --- src/woodpecker/woodpecker.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/woodpecker/woodpecker.service.ts b/src/woodpecker/woodpecker.service.ts index f9b542b..5ea3a20 100644 --- a/src/woodpecker/woodpecker.service.ts +++ b/src/woodpecker/woodpecker.service.ts @@ -34,8 +34,9 @@ export class WoodpeckerService { ); return { + baseUrl: this.baseUrl, repos: normalizedRepos - .map((repo, index) => normalizeRepo(repo, pipelines[index])) + .map((repo, index) => normalizeRepo(repo, pipelines[index], this.baseUrl)) .sort((a, b) => b.createdAt - a.createdAt), }; } @@ -87,7 +88,7 @@ export class WoodpeckerService { } } -function normalizeRepo(repo: WoodpeckerRepo, pipeline = getPipeline(repo)) { +function normalizeRepo(repo: WoodpeckerRepo, pipeline = getPipeline(repo), baseUrl = '') { const createdAt = getPipelineTime(pipeline); const repository = getString(repo.full_name) || getString(repo.fullName) || joinRepoName(repo) || getString(repo.name) || '-'; @@ -98,6 +99,7 @@ function normalizeRepo(repo: WoodpeckerRepo, pipeline = getPipeline(repo)) { branch: getString(pipeline.branch) || '-', status: getString(pipeline.status) || '-', createdAt, + ciUrl: baseUrl || null, url: getString(repo.link_url) || getString(repo.forge_url) || getString(repo.url) || null, }; }