Trigger analyst on edited comments, not just new ones
Publish Image / publish (push) Successful in 21s
Publish Image / publish (push) Successful in 21s
An edited comment during analysis is equally meaningful as a new one for continuing the conversation with the analyst. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
4e5993f489
commit
6062d1b518
@@ -12,8 +12,8 @@ export function issueComment(config: Config, coder: CoderClient) {
|
||||
return async (c: Context) => {
|
||||
const event = await c.req.json<IssueCommentEvent>();
|
||||
|
||||
if (event.action !== "created") {
|
||||
return c.text("ignored: not a created event", 200);
|
||||
if (event.action !== "created" && event.action !== "edited") {
|
||||
return c.text("ignored: not a created or edited event", 200);
|
||||
}
|
||||
|
||||
const commenter = event.comment.user.login;
|
||||
|
||||
Reference in New Issue
Block a user