Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
Expand Down Expand Up @@ -62,9 +62,9 @@ public async Task<IActionResult> 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<string>("GithubBearerToken");
Expand Down