Merge branch 'master' into af/add-readme-card-azure-devops

Signed-off-by: alissonfabiano <56898864+alissonfabiano@users.noreply.github.com>
This commit is contained in:
alissonfabiano
2022-08-19 11:08:42 +01:00
committed by GitHub
736 changed files with 12075 additions and 5398 deletions
@@ -56,6 +56,7 @@ import {
} from 'azure-devops-node-api/interfaces/CoreInterfaces';
import { UrlReader } from '@backstage/backend-common';
/** @public */
export class AzureDevOpsApi {
public constructor(
private readonly logger: Logger,
@@ -77,6 +78,7 @@ export class AzureDevOpsApi {
a.name && b.name ? a.name.localeCompare(b.name) : 0,
);
}
public async getGitRepository(
projectName: string,
repoName: string,
@@ -298,13 +300,11 @@ export class AzureDevOpsApi {
);
}
public async getTeamMembers({
projectId,
teamId,
}: {
public async getTeamMembers(options: {
projectId: string;
teamId: string;
}): Promise<TeamMember[] | undefined> {
const { projectId, teamId } = options;
this.logger?.debug(`Getting team member ids for team '${teamId}'.`);
const client = await this.webApi.getCoreApi();
@@ -31,6 +31,7 @@ import express from 'express';
const DEFAULT_TOP = 10;
/** @public */
export interface RouterOptions {
azureDevOpsApi?: AzureDevOpsApi;
logger: Logger;
@@ -38,6 +39,7 @@ export interface RouterOptions {
reader: UrlReader;
}
/** @public */
export async function createRouter(
options: RouterOptions,
): Promise<express.Router> {