Class ProfileDetector
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
gitHubServiceIGitHubServiceloggerILogger<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
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.
public IReadOnlyList<string> ParseProfiles(string scriptContent)
Parameters
scriptContentstringThe content of a build.csando file.
Returns
- IReadOnlyList<string>
List of detected profile names.