add: terminal tool
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
namespace Alchegos.Gitea.Webhook.Handlers;
|
||||
namespace Alchegos.Webhook.Handlers.AlchegosEventHandlers;
|
||||
|
||||
public interface IAlchegosEventHandler : IWebhookEventHandler
|
||||
{
|
||||
12
Handlers/AlchegosEventHandlers/ProjectPlanEventHandler.cs
Normal file
12
Handlers/AlchegosEventHandlers/ProjectPlanEventHandler.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Alchegos.Gitea.Webhook.Handlers;
|
||||
namespace Alchegos.Webhook.Handlers.GiteaEventHandlers;
|
||||
|
||||
public interface IGiteaEventHandler: IWebhookEventHandler
|
||||
{
|
||||
@@ -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()},
|
||||
@@ -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
|
||||
{
|
||||
@@ -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
|
||||
{
|
||||
@@ -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
|
||||
{
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user