mirror of
https://github.com/microsoft/autogen.git
synced 2025-08-06 07:43:00 +00:00
[gh-flow] If Item.Message is null it tries to post empty messages (#42)
This commit is contained in:
parent
b08b696145
commit
cc66a1ca71
@ -34,7 +34,7 @@ public class Hubber : Agent
|
|||||||
case nameof(GithubFlowEventType.DevPlanGenerated):
|
case nameof(GithubFlowEventType.DevPlanGenerated):
|
||||||
case nameof(GithubFlowEventType.CodeGenerated):
|
case nameof(GithubFlowEventType.CodeGenerated):
|
||||||
var contents = string.IsNullOrEmpty(item.Message)? "Sorry, I got tired, can you try again please? ": item.Message;
|
var contents = string.IsNullOrEmpty(item.Message)? "Sorry, I got tired, can you try again please? ": item.Message;
|
||||||
await PostComment(item.Data["org"], item.Data["repo"], long.Parse(item.Data["issueNumber"]), item.Message);
|
await PostComment(item.Data["org"], item.Data["repo"], long.Parse(item.Data["issueNumber"]), contents);
|
||||||
break;
|
break;
|
||||||
case nameof(GithubFlowEventType.DevPlanCreated):
|
case nameof(GithubFlowEventType.DevPlanCreated):
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user