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:
@@ -7,10 +7,11 @@ export type CommonAppPipeline = {
|
||||
branch: string;
|
||||
status: string;
|
||||
createdAt: number;
|
||||
ciUrl?: string | null;
|
||||
url?: string | null;
|
||||
};
|
||||
|
||||
export function listCommonAppPipelines() {
|
||||
return apiRequest<{ repos?: CommonAppPipeline[] }>('/woodpecker/repos')
|
||||
.then((result) => result.repos ?? []);
|
||||
return apiRequest<{ repos?: CommonAppPipeline[]; baseUrl?: string | null }>('/woodpecker/repos')
|
||||
.then((result) => (result.repos ?? []).map((repo) => ({ ...repo, ciUrl: repo.ciUrl ?? result.baseUrl ?? null })));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user