Table of Contents

Interface IProfileDetector

Namespace
Ando.Server.Services
Assembly
Ando.Server.dll

Service for detecting available profiles from build scripts.

public interface IProfileDetector

Methods

DetectProfilesAsync(long, string, string?)

Detects available profiles from a repository's build script.

Task<IReadOnlyList<string>> DetectProfilesAsync(long installationId, string repoFullName, string? branch = null)

Parameters

installationId long

GitHub App installation ID.

repoFullName string

Repository full name (owner/repo).

branch string

Branch to read from (optional, uses default branch if null).

Returns

Task<IReadOnlyList<string>>

List of detected profile names.

ParseProfiles(string)

Detects available profiles from build script content.

IReadOnlyList<string> ParseProfiles(string scriptContent)

Parameters

scriptContent string

The content of a build.csando file.

Returns

IReadOnlyList<string>

List of detected profile names.