feat(trigger): add event_name to PluginTriggerMetadata for enhanced trigger handling

- Introduced event_name attribute in PluginTriggerMetadata to improve metadata clarity.
- Updated dispatch_triggered_workflow function to include event_name when dispatching triggered workflows.
This commit is contained in:
Harry 2025-10-28 18:32:06 +08:00
parent c16421df27
commit 18fd79fbe6
2 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,7 @@ class PluginTriggerMetadata(TriggerMetadata):
endpoint_id: str
plugin_unique_identifier: str
provider_id: str
event_name: str
icon_filename: str
icon_dark_filename: str

View File

@ -207,6 +207,7 @@ def dispatch_triggered_workflow(
plugin_unique_identifier=provider_controller.plugin_unique_identifier or "",
endpoint_id=subscription.endpoint_id,
provider_id=subscription.provider_id,
event_name=event_name,
icon_filename=trigger_entity.identity.icon or "",
icon_dark_filename=trigger_entity.identity.icon_dark or "",
),