mirror of
https://github.com/microsoft/autogen.git
synced 2026-02-17 13:11:22 -05:00
streaming working
This commit is contained in:
@@ -27,7 +27,7 @@ public sealed class GithubWebHookProcessor : WebhookEventProcessor
|
||||
try
|
||||
{
|
||||
_logger.LogInformation("Processing issue event");
|
||||
var org = issuesEvent.Organization.Login;
|
||||
var org = issuesEvent.Organization.Login;
|
||||
var repo = issuesEvent.Repository.Name;
|
||||
var issueNumber = issuesEvent.Issue.Number;
|
||||
var input = issuesEvent.Issue.Body;
|
||||
@@ -38,10 +38,12 @@ public sealed class GithubWebHookProcessor : WebhookEventProcessor
|
||||
var suffix = $"{org}-{repo}";
|
||||
if (issuesEvent.Action == IssuesAction.Opened)
|
||||
{
|
||||
_logger.LogInformation("Processing HandleNewAsk");
|
||||
await HandleNewAsk(issueNumber, skillName, functionName, suffix, input, org, repo);
|
||||
}
|
||||
else if (issuesEvent.Action == IssuesAction.Closed && issuesEvent.Issue.User.Type.Value == UserType.Bot)
|
||||
{
|
||||
_logger.LogInformation("Processing HandleClosingIssue");
|
||||
await HandleClosingIssue(issueNumber, skillName, functionName, suffix, org, repo);
|
||||
}
|
||||
}
|
||||
@@ -59,7 +61,7 @@ public sealed class GithubWebHookProcessor : WebhookEventProcessor
|
||||
try
|
||||
{
|
||||
_logger.LogInformation("Processing issue comment event");
|
||||
var org = issueCommentEvent.Organization.Login;
|
||||
var org = issueCommentEvent.Organization.Login;
|
||||
var repo = issueCommentEvent.Repository.Name;
|
||||
var issueNumber = issueCommentEvent.Issue.Number;
|
||||
var input = issueCommentEvent.Issue.Body;
|
||||
|
||||
Reference in New Issue
Block a user