add: terminal tool

This commit is contained in:
h z
2025-05-01 23:01:29 +01:00
parent eee9eca6cb
commit 11fed38dff
18 changed files with 98 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
namespace Alchegos.Gitea.Webhook.Handlers;
namespace Alchegos.Webhook.Handlers.AlchegosEventHandlers;
public interface IAlchegosEventHandler : IWebhookEventHandler
{

View File

@@ -0,0 +1,12 @@
using System.Text.Json.Nodes;
using Alchegos.Core.Services.RabbitMQ;
namespace Alchegos.Webhook.Handlers.AlchegosEventHandlers;
public class ProjectPlanEventHandler : IAlchegosEventHandler
{
public Task HandleAsync(JsonNode payload, IRabbitPublisher publisher)
{
throw new NotImplementedException();
}
}

View File

@@ -1,4 +1,4 @@
namespace Alchegos.Gitea.Webhook.Handlers;
namespace Alchegos.Webhook.Handlers.GiteaEventHandlers;
public interface IGiteaEventHandler: IWebhookEventHandler
{

View File

@@ -2,7 +2,7 @@ using System.Text.Json;
using System.Text.Json.Nodes;
using Alchegos.Core.Services.RabbitMQ;
namespace Alchegos.Gitea.Webhook.Handlers;
namespace Alchegos.Webhook.Handlers.GiteaEventHandlers;
public class IssueCommentEventHandler : IGiteaEventHandler
{
@@ -11,7 +11,7 @@ public class IssueCommentEventHandler : IGiteaEventHandler
if (payload["action"]?.ToString() != "created")
return;
var message = new Dictionary<string, string>
Dictionary<string, string> message = new Dictionary<string, string>
{
{"repo_url", payload["repository"]?["url"]?.ToString()},
{"repo_owner", payload["repository"]?["owner"]?["login"]?.ToString()},

View File

@@ -2,7 +2,7 @@ using System.Text.Json;
using System.Text.Json.Nodes;
using Alchegos.Core.Services.RabbitMQ;
namespace Alchegos.Gitea.Webhook.Handlers;
namespace Alchegos.Webhook.Handlers.GiteaEventHandlers;
public class IssuesEventHandler : IGiteaEventHandler
{

View File

@@ -2,7 +2,7 @@ using System.Text.Json;
using System.Text.Json.Nodes;
using Alchegos.Core.Services.RabbitMQ;
namespace Alchegos.Gitea.Webhook.Handlers;
namespace Alchegos.Webhook.Handlers.GiteaEventHandlers;
public class PullRequestEventHandler : IGiteaEventHandler
{

View File

@@ -2,7 +2,7 @@ using System.Text.Json;
using System.Text.Json.Nodes;
using Alchegos.Core.Services.RabbitMQ;
namespace Alchegos.Gitea.Webhook.Handlers;
namespace Alchegos.Webhook.Handlers.GiteaEventHandlers;
public class PushEventHandler : IGiteaEventHandler
{

View File

@@ -1,7 +1,7 @@
using System.Text.Json.Nodes;
using Alchegos.Core.Services.RabbitMQ;
namespace Alchegos.Gitea.Webhook.Handlers;
namespace Alchegos.Webhook.Handlers;
public interface IWebhookEventHandler
{

View File

@@ -1,8 +1,9 @@
using System.Text.Json;
using System.Text.Json.Nodes;
using Alchegos.Core.Services.RabbitMQ;
using Alchegos.Webhook.Handlers.GiteaEventHandlers;
namespace Alchegos.Gitea.Webhook.Handlers;
namespace Alchegos.Webhook.Handlers;
public class ProjectPlanEventHandler : IGiteaEventHandler
{