connect tailscale node status through platform gateway
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -34,8 +34,9 @@ export class WoodpeckerService {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
baseUrl: this.baseUrl,
|
||||||
repos: normalizedRepos
|
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),
|
.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 createdAt = getPipelineTime(pipeline);
|
||||||
const repository = getString(repo.full_name) || getString(repo.fullName) || joinRepoName(repo) || getString(repo.name) || '-';
|
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) || '-',
|
branch: getString(pipeline.branch) || '-',
|
||||||
status: getString(pipeline.status) || '-',
|
status: getString(pipeline.status) || '-',
|
||||||
createdAt,
|
createdAt,
|
||||||
|
ciUrl: baseUrl || null,
|
||||||
url: getString(repo.link_url) || getString(repo.forge_url) || getString(repo.url) || null,
|
url: getString(repo.link_url) || getString(repo.forge_url) || getString(repo.url) || null,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user