Interface IProfileDetector
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
installationIdlongGitHub App installation ID.
repoFullNamestringRepository full name (owner/repo).
branchstringBranch 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
scriptContentstringThe content of a build.csando file.
Returns
- IReadOnlyList<string>
List of detected profile names.