Skip to content

Commit ac8585d

Browse files
chore: added events for comments
1 parent 17f954c commit ac8585d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ts-template",
33
"description": "ts-template for UbiquityOS plugins.",
4-
"ubiquity:listeners": ["issue_comment.created"],
4+
"ubiquity:listeners": ["issue_comment.created", "pull_request_review_comment.created", "pull_request_review.submitted"],
55
"commands": {
66
"hello": {
77
"ubiquity:example": "/hello argument",

src/types/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ import { PluginSettings } from "./plugin-input";
77
*
88
* ubiquity:listeners: ["issue_comment.created", ...]
99
*/
10-
export type SupportedEvents = "issue_comment.created";
10+
export type SupportedEvents = "issue_comment.created" | "pull_request_review_comment.created" | "pull_request_review.submitted";
1111

1212
export type Context<T extends SupportedEvents = SupportedEvents> = PluginContext<PluginSettings, Env, null, T>;

0 commit comments

Comments
 (0)