Skip to content

Commit b4a375d

Browse files
committed
fix pydoc and extend init files
1 parent 7144176 commit b4a375d

3 files changed

Lines changed: 39 additions & 7 deletions

File tree

integrations/github/pydoc/config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ loaders:
22
- type: haystack_pydoc_tools.loaders.CustomPythonLoader
33
search_path: [../src]
44
modules: [
5-
"haystack_integrations.components.connectors.file_editor",
6-
"haystack_integrations.components.connectors.issue_commenter",
7-
"haystack_integrations.components.connectors.issue_viewer",
8-
"haystack_integrations.components.connectors.pr_creator",
9-
"haystack_integrations.components.connectors.repo_viewer",
10-
"haystack_integrations.components.connectors.repository_forker",
5+
"haystack_integrations.components.connectors.github.file_editor",
6+
"haystack_integrations.components.connectors.github.issue_commenter",
7+
"haystack_integrations.components.connectors.github.issue_viewer",
8+
"haystack_integrations.components.connectors.github.pr_creator",
9+
"haystack_integrations.components.connectors.github.repo_viewer",
10+
"haystack_integrations.components.connectors.github.repository_forker",
1111
]
1212
ignore_when_discovered: ["__init__"]
1313
processors:
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
from .file_editor import Command, GithubFileEditor
6+
from .issue_commenter import GithubIssueCommenter
7+
from .issue_viewer import GithubIssueViewer
8+
from .pr_creator import GithubPRCreator
9+
from .repo_viewer import GithubRepositoryViewer
10+
from .repository_forker import GithubRepoForker
11+
12+
__all__ = [
13+
"Command",
14+
"GithubFileEditor",
15+
"GithubIssueCommenter",
16+
"GithubIssueViewer",
17+
"GithubPRCreator",
18+
"GithubRepoForker",
19+
"GithubRepositoryViewer",
20+
]

integrations/github/src/haystack_integrations/prompts/github/__init__.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,19 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5+
from .comment_tool import comment_prompt, comment_schema
6+
from .file_editor_tool import file_editor_prompt, file_editor_schema
7+
from .pr_system_prompt import system_prompt as pr_system_prompt
58
from .repo_viewer_tool import repo_viewer_prompt, repo_viewer_schema
69
from .system_prompt import issue_prompt
710

8-
__all__ = ["issue_prompt", "repo_viewer_prompt", "repo_viewer_schema"]
11+
__all__ = [
12+
"comment_prompt",
13+
"comment_schema",
14+
"file_editor_prompt",
15+
"file_editor_schema",
16+
"issue_prompt",
17+
"pr_system_prompt",
18+
"repo_viewer_prompt",
19+
"repo_viewer_schema",
20+
]

0 commit comments

Comments
 (0)