Hierarchy (View Summary)

Implements

Constructors

Properties

baseUrl: string
http: HttpClient
rest: RestClient
userAgent: string
vsoClient: VsoClient

Methods

  • Gets a list of existing configuration files for the given repository.

    Parameters

    • project: string

      Project ID or project name

    • OptionalrepositoryType: string

      The type of the repository such as GitHub, TfsGit (i.e. Azure Repos), Bitbucket, etc.

    • OptionalrepositoryId: string

      The vendor-specific identifier or the name of the repository, e.g. Microsoft/vscode (GitHub) or e9d82045-ddba-4e01-a63d-2ab9f040af62 (Azure Repos)

    • Optionalbranch: string

      The repository branch where to look for the configuration file.

    • OptionalserviceConnectionId: string

      If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TfsGit (i.e. Azure Repos).

    Returns Promise<ConfigurationFile[]>

  • Returns a list of build frameworks that best match the given repository based on its contents.

    Parameters

    • project: string

      Project ID or project name

    • OptionalrepositoryType: string

      The type of the repository such as GitHub, TfsGit (i.e. Azure Repos), Bitbucket, etc.

    • OptionalrepositoryId: string

      The vendor-specific identifier or the name of the repository, e.g. Microsoft/vscode (GitHub) or e9d82045-ddba-4e01-a63d-2ab9f040af62 (Azure Repos)

    • Optionalbranch: string

      The repository branch to detect build frameworks for.

    • OptionaldetectionType: BuildFrameworkDetectionType
    • OptionalserviceConnectionId: string

      If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TfsGit (i.e. Azure Repos).

    Returns Promise<DetectedBuildFramework[]>