Table of Contents

Class ProfileDetector

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

Detects available profiles from build scripts.

public class ProfileDetector : IProfileDetector
Inheritance
ProfileDetector
Implements
Inherited Members

Constructors

ProfileDetector(IGitHubService, ILogger<ProfileDetector>)

public ProfileDetector(IGitHubService gitHubService, ILogger<ProfileDetector> logger)

Parameters

gitHubService IGitHubService
logger ILogger<ProfileDetector>

Methods

DetectProfilesAsync(long, string, string?)

Detects available profiles from a repository's build script.

public 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.

public IReadOnlyList<string> ParseProfiles(string scriptContent)

Parameters

scriptContent string

The content of a build.csando file.

Returns

IReadOnlyList<string>

List of detected profile names.