refactor: enhance subscription handling in PluginExecutor and related classes

- Added subscription handling to the EventRuntime and TriggerInvokeEventRequest classes, improving the management of event subscriptions.
- Updated the PluginExecutor to include subscription details when invoking events, ensuring better integration with subscription-based workflows.
- Modified test cases to reflect the new subscription structure, enhancing test coverage and reliability.

These changes improve the overall functionality and clarity of the subscription system within the plugin.
This commit is contained in:
Harry
2025-10-13 18:12:54 +08:00
parent 66e3c29c2c
commit e526acc498
5 changed files with 83 additions and 57 deletions
@@ -38,60 +38,60 @@ subscription_constructor:
required: true
multiple: true
default:
- "branch_protection_configuration"
- "branch_protection_rule"
- "check_run"
- "check_suite"
- "code_scanning_alert"
- "commit_comment"
- "create"
- "custom_property_values"
- "delete"
- "dependabot_alert"
- "deploy_key"
- "deployment"
- "deployment_status"
- "discussion"
- "discussion_comment"
- "fork"
- "gollum"
- "issue_comment"
- "issue_dependencies"
- "issues"
- "label"
- "member"
- "merge_group"
- "meta"
- "milestone"
- "package"
- "page_build"
- "ping"
- "project_card"
- "project"
- "project_column"
- "public"
- "pull_request"
- "pull_request_review_comment"
- "pull_request_review"
- "pull_request_review_thread"
- "push"
- "registry_package"
- "release"
- "repository_advisory"
- "repository"
- "repository_import"
- "repository_ruleset"
- "repository_vulnerability_alert"
- "secret_scanning_alert"
- "secret_scanning_alert_location"
- "secret_scanning_scan"
- "security_and_analysis"
- "star"
- "status"
- "sub_issues"
- "watch"
- "workflow_job"
- "workflow_run"
- "branch_protection_configuration"
- "branch_protection_rule"
- "check_run"
- "check_suite"
- "code_scanning_alert"
- "commit_comment"
- "create"
- "custom_property_values"
- "delete"
- "dependabot_alert"
- "deploy_key"
- "deployment"
- "deployment_status"
- "discussion"
- "discussion_comment"
- "fork"
- "gollum"
- "issue_comment"
- "issue_dependencies"
- "issues"
- "label"
- "member"
- "merge_group"
- "meta"
- "milestone"
- "package"
- "page_build"
- "ping"
- "project_card"
- "project"
- "project_column"
- "public"
- "pull_request"
- "pull_request_review_comment"
- "pull_request_review"
- "pull_request_review_thread"
- "push"
- "registry_package"
- "release"
- "repository_advisory"
- "repository"
- "repository_import"
- "repository_ruleset"
- "repository_vulnerability_alert"
- "secret_scanning_alert"
- "secret_scanning_alert_location"
- "secret_scanning_scan"
- "security_and_analysis"
- "star"
- "status"
- "sub_issues"
- "watch"
- "workflow_job"
- "workflow_run"
options:
- value: "branch_protection_configuration"
label: