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 @@
[AllowAnonymous]
public class PullRequestStatusCheckController : ControllerBase
{
private static readonly string[] RepositoryOwners = ["Testably", "aweXpect"];
private static readonly string[] RepositoryOwners = ["Testably", "aweXpect", "TestableIO"];

private const string SuccessMessage =
"The PR title must conform to the conventional commits guideline.";
Expand Down Expand Up @@ -71,6 +71,7 @@
{
"Testably" => _configuration.GetValue<string>("testablyToken"),
"aweXpect" => _configuration.GetValue<string>("aweXpectToken"),
"TestableIO" => _configuration.GetValue<string>("TestableIOToken"),
_ => ""
};
if (string.IsNullOrEmpty(bearerToken))
Expand All @@ -83,7 +84,7 @@

using var client = _clientFactory.CreateClient("Proxied");
client.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue("Testably",
Assembly.GetExecutingAssembly().GetName().Version.ToString()));

Check warning on line 87 in Source/Testably.Server/Controllers/PullRequestStatusCheckController.cs

View workflow job for this annotation

GitHub Actions / build

Dereference of a possibly null reference.

Check warning on line 87 in Source/Testably.Server/Controllers/PullRequestStatusCheckController.cs

View workflow job for this annotation

GitHub Actions / build

Dereference of a possibly null reference.
client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", bearerToken);

Expand Down