You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In the process of using, I found that many agents need to write corresponding functions separately, especially @webhook.hook() every time. Can I express all events in some way and get the types of events?
Describe the solution you'd like
I hope to use the * parameter to represent all events and give an event_type label.
@webhook.hook("*") #when any event happened, e. g. `push`defevent(data, event_type):
returnevent_type# event_type = "push"
I wrote a json configuration file with the following fields:
Hi, @bloomberg-oss
Is your feature request related to a problem? Please describe.
In the process of using, I found that many agents need to write corresponding functions separately, especially
@webhook.hook()every time. Can I express all events in some way and get the types of events?Describe the solution you'd like
I hope to use the
*parameter to represent all events and give an event_type label.I wrote a json configuration file with the following fields:
{ "star": { "created": "{sender.login} starred repo. " } }the template is:
{ "event_type": { "data.action": "..." } }if I read the json as
config:This could be activate