Skip to content

Commit

Permalink
make the prg name handling case-invariant
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Apr 12, 2024
1 parent 7c676e6 commit 14d221c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,14 @@ public static void Main(string[] args)
long jobId = workflowJson.GetProperty("id").GetInt64();
string repoName = json.RootElement.GetProperty("repository").GetProperty("full_name").GetString();
string orgName = json.RootElement.GetProperty("organization").GetProperty("login").GetString();
string orgNameReq = json.RootElement.GetProperty("organization").GetProperty("login").GetString();
string orgName = Config.OrgConfigs.FirstOrDefault(x => x.OrgName.ToLower() == orgNameReq.ToLower())?.OrgName;
if (String.IsNullOrEmpty(orgName))
{
logger.LogError($"Unknown organization: {orgName} - check setup. aborting.");
return;
}
// Check if Org is configured
if (Config.OrgConfigs.All(x => x.OrgName != orgName))
Expand Down

0 comments on commit 14d221c

Please sign in to comment.