diff --git a/Source/Testably.Server/Controllers/PullRequestStatusCheckController.cs b/Source/Testably.Server/Controllers/PullRequestStatusCheckController.cs index 4833b01..a6dd661 100644 --- a/Source/Testably.Server/Controllers/PullRequestStatusCheckController.cs +++ b/Source/Testably.Server/Controllers/PullRequestStatusCheckController.cs @@ -12,7 +12,7 @@ namespace Testably.Server.Controllers; [AllowAnonymous] public class PullRequestStatusCheckController : ControllerBase { - private const string RepositoryOwner = "Testably"; + private static readonly string[] RepositoryOwners = ["Testably", "aweXpect"]; private const string SuccessMessage = "The PR title must conform to the conventional commits guideline."; @@ -62,9 +62,9 @@ public async Task OnPullRequestChanged( } if (pullRequestModel.Repository.Private || - pullRequestModel.Repository.Owner.Login != RepositoryOwner) + RepositoryOwners.All(repositoryOwner => pullRequestModel.Repository.Owner.Login != repositoryOwner)) { - return BadRequest($"Only public repositories from '{RepositoryOwner}' are supported!"); + return BadRequest($"Only public repositories from '{string.Join(", ", RepositoryOwners)}' are supported!"); } var bearerToken = _configuration.GetValue("GithubBearerToken");