Skip to content

Commit 474b773

Browse files
authoredApr 29, 2021
feat: deprecate usage of the "*" event name (#1518)
1 parent 8cc1590 commit 474b773

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/probot.ts

+3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ export class Probot {
9595

9696
this.on = (eventNameOrNames, callback) => {
9797
if (eventNameOrNames === "*") {
98+
this.log.warn(
99+
`[probot] Using the "*" event with the regular app.on() function is deprecated. Please use the app.webhooks.onAny() method instead`
100+
);
98101
// @ts-ignore this.webhooks.on("*") is deprecated
99102
return this.webhooks.onAny(callback);
100103
}

0 commit comments

Comments
 (0)
Please sign in to comment.