Coverage for mindsdb / integrations / handlers / github_handler / connection_args.py: 0%
4 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-21 00:36 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-21 00:36 +0000
1from collections import OrderedDict
3from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE as ARG_TYPE
6connection_args = OrderedDict(
7 repository={
8 "type": ARG_TYPE.STR,
9 "description": " GitHub repository name.",
10 "required": True,
11 "label": "Repository",
12 },
13 api_key={
14 "type": ARG_TYPE.PWD,
15 "description": "Optional GitHub API key to use for authentication.",
16 "required": False,
17 "label": "Api key",
18 "secret": True
19 },
20 github_url={
21 "type": ARG_TYPE.STR,
22 "description": "Optional GitHub URL to connect to a GitHub Enterprise instance.",
23 "required": False,
24 "label": "Github url",
25 },
26)
28connection_args_example = OrderedDict(
29 repository="mindsdb/mindsdb",
30 api_key="ghp_z91InCQZWZAMlddOzFCX7xHJrf9Fai35HT7",
31 github_url="https://github.com/mindsdb/mindsdb"
32)