mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-22 18:35:29 -04:00
refactor: standardize import statements in GitHub trigger files
- Removed redundant import paths for `fetch_repositories` in `github.py` and `issue_comment.py`. - Updated import statements to use a consistent module path for better maintainability. These changes enhance code organization and readability across the GitHub trigger implementation.
This commit is contained in:
@@ -8,6 +8,7 @@ from collections.abc import Mapping
|
||||
from typing import Any
|
||||
|
||||
import requests
|
||||
from utils.dynamic_options import fetch_repositories
|
||||
from werkzeug import Request, Response
|
||||
|
||||
from dify_plugin.entities import I18nObject, ParameterOption
|
||||
@@ -21,7 +22,6 @@ from dify_plugin.errors.trigger import (
|
||||
TriggerValidationError,
|
||||
)
|
||||
from dify_plugin.interfaces.trigger import TriggerProvider
|
||||
from examples.github_trigger.utils.dynamic_options import fetch_repositories
|
||||
|
||||
|
||||
class GithubProvider(TriggerProvider):
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from collections.abc import Mapping
|
||||
from typing import Any
|
||||
|
||||
from utils.dynamic_options import fetch_repositories
|
||||
from werkzeug import Request
|
||||
|
||||
from dify_plugin.entities import ParameterOption
|
||||
from dify_plugin.entities.trigger import Event
|
||||
from dify_plugin.interfaces.trigger import TriggerEvent
|
||||
from examples.github_trigger.utils.dynamic_options import fetch_repositories
|
||||
|
||||
|
||||
class IssueCommentTrigger(TriggerEvent):
|
||||
|
||||
Reference in New Issue
Block a user