connect tailscale node status through platform gateway
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-07-08 18:14:02 +09:00
parent 27bf41d2d3
commit beb9dda8c6
+4 -2
View File
@@ -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,
};
}