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:
Harry
2025-09-08 23:55:18 +08:00
parent a285c70f52
commit 482c227b88
3 changed files with 2 additions and 2 deletions
@@ -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):