fix: update GitHub trigger plugin configuration

- Removed the MAX_REQUEST_TIMEOUT parameter from the Plugin initialization for default behavior.
- Added a new section in the GitHub provider YAML file to specify the source of the Python implementation.

These changes simplify the plugin setup and enhance the configuration clarity for the GitHub trigger integration.
This commit is contained in:
Yeuoly
2025-09-26 23:17:40 +08:00
parent 1881a22494
commit 8d83234b83
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
from dify_plugin import DifyPluginEnv, Plugin
plugin = Plugin(DifyPluginEnv(MAX_REQUEST_TIMEOUT=120))
plugin = Plugin(DifyPluginEnv())
if __name__ == "__main__":
plugin.run()
@@ -86,6 +86,9 @@ subscription_constructor: # OPTIONAL
zh_Hans: "Access Token"
en_US: "Access Token"
ja_JP: "アクセストークン"
extra:
python:
source: provider/github.py
triggers:
# Core Events (Consolidated)