From 5c6df5f065b9470b508a2a8944464d3eecc26f98 Mon Sep 17 00:00:00 2001 From: dw511214992 Date: Mon, 8 Aug 2022 17:15:40 +0800 Subject: [PATCH 1/2] support creating go apiview in pipeline --- .../APIView/APIViewWeb/Controllers/PullRequestController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dotnet/APIView/APIViewWeb/Controllers/PullRequestController.cs b/src/dotnet/APIView/APIViewWeb/Controllers/PullRequestController.cs index be65b0fe22e..39aca902734 100644 --- a/src/dotnet/APIView/APIViewWeb/Controllers/PullRequestController.cs +++ b/src/dotnet/APIView/APIViewWeb/Controllers/PullRequestController.cs @@ -15,7 +15,7 @@ public class PullRequestController : Controller private readonly PullRequestManager _pullRequestManager; private readonly ILogger _logger; - string[] VALID_EXTENSIONS = new string[] { ".whl", ".api.json", ".nupkg", "-sources.jar" }; + string[] VALID_EXTENSIONS = new string[] { ".whl", ".api.json", ".nupkg", "-sources.jar", ".gosource"}; public PullRequestController(PullRequestManager pullRequestManager, ILogger logger) { From ea4ef66fbff7c9b1ef6f7c28d783a53a7038ecd2 Mon Sep 17 00:00:00 2001 From: dw511214992 Date: Mon, 8 Aug 2022 17:18:42 +0800 Subject: [PATCH 2/2] format --- .../APIView/APIViewWeb/Controllers/PullRequestController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dotnet/APIView/APIViewWeb/Controllers/PullRequestController.cs b/src/dotnet/APIView/APIViewWeb/Controllers/PullRequestController.cs index 39aca902734..45e95711d50 100644 --- a/src/dotnet/APIView/APIViewWeb/Controllers/PullRequestController.cs +++ b/src/dotnet/APIView/APIViewWeb/Controllers/PullRequestController.cs @@ -15,7 +15,7 @@ public class PullRequestController : Controller private readonly PullRequestManager _pullRequestManager; private readonly ILogger _logger; - string[] VALID_EXTENSIONS = new string[] { ".whl", ".api.json", ".nupkg", "-sources.jar", ".gosource"}; + string[] VALID_EXTENSIONS = new string[] { ".whl", ".api.json", ".nupkg", "-sources.jar", ".gosource" }; public PullRequestController(PullRequestManager pullRequestManager, ILogger logger) {