swarmauri_tool_containermakepr 0.7.5.dev1__tar.gz → 0.9.0.dev3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {swarmauri_tool_containermakepr-0.7.5.dev1 → swarmauri_tool_containermakepr-0.9.0.dev3}/PKG-INFO +3 -2
- {swarmauri_tool_containermakepr-0.7.5.dev1 → swarmauri_tool_containermakepr-0.9.0.dev3}/README.md +2 -1
- {swarmauri_tool_containermakepr-0.7.5.dev1 → swarmauri_tool_containermakepr-0.9.0.dev3}/pyproject.toml +1 -1
- {swarmauri_tool_containermakepr-0.7.5.dev1 → swarmauri_tool_containermakepr-0.9.0.dev3}/swarmauri_tool_containermakepr/ContainerMakePrTool.py +18 -9
- {swarmauri_tool_containermakepr-0.7.5.dev1 → swarmauri_tool_containermakepr-0.9.0.dev3}/LICENSE +0 -0
- {swarmauri_tool_containermakepr-0.7.5.dev1 → swarmauri_tool_containermakepr-0.9.0.dev3}/swarmauri_tool_containermakepr/__init__.py +0 -0
{swarmauri_tool_containermakepr-0.7.5.dev1 → swarmauri_tool_containermakepr-0.9.0.dev3}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: swarmauri_tool_containermakepr
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.9.0.dev3
|
|
4
4
|
Summary: Create GitHub pull requests from containers.
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Author: Jacob Stewart
|
|
@@ -47,6 +47,7 @@ pip install swarmauri_tool_containermakepr
|
|
|
47
47
|
```python
|
|
48
48
|
from swarmauri_tool_containermakepr import ContainerMakePrTool
|
|
49
49
|
|
|
50
|
-
ContainerMakePrTool(
|
|
50
|
+
tool = ContainerMakePrTool(container_name="my-container")
|
|
51
|
+
tool(title="Update", body="PR body")
|
|
51
52
|
```
|
|
52
53
|
|
{swarmauri_tool_containermakepr-0.7.5.dev1 → swarmauri_tool_containermakepr-0.9.0.dev3}/README.md
RENAMED
|
@@ -30,5 +30,6 @@ pip install swarmauri_tool_containermakepr
|
|
|
30
30
|
```python
|
|
31
31
|
from swarmauri_tool_containermakepr import ContainerMakePrTool
|
|
32
32
|
|
|
33
|
-
ContainerMakePrTool(
|
|
33
|
+
tool = ContainerMakePrTool(container_name="my-container")
|
|
34
|
+
tool(title="Update", body="PR body")
|
|
34
35
|
```
|
|
@@ -17,14 +17,12 @@ class ContainerMakePrTool(ToolBase):
|
|
|
17
17
|
|
|
18
18
|
driver: Literal["docker", "kubernetes"] = "docker"
|
|
19
19
|
|
|
20
|
+
container_name: str | None = Field(
|
|
21
|
+
default=None, description="Target container or pod name"
|
|
22
|
+
)
|
|
23
|
+
|
|
20
24
|
parameters: List[Parameter] = Field(
|
|
21
25
|
default_factory=lambda: [
|
|
22
|
-
Parameter(
|
|
23
|
-
name="container_name",
|
|
24
|
-
input_type="string",
|
|
25
|
-
description="Target container or pod name",
|
|
26
|
-
required=True,
|
|
27
|
-
),
|
|
28
26
|
Parameter(
|
|
29
27
|
name="title",
|
|
30
28
|
input_type="string",
|
|
@@ -37,15 +35,26 @@ class ContainerMakePrTool(ToolBase):
|
|
|
37
35
|
description="Pull request body",
|
|
38
36
|
required=True,
|
|
39
37
|
),
|
|
38
|
+
Parameter(
|
|
39
|
+
name="container_name",
|
|
40
|
+
input_type="string",
|
|
41
|
+
description="Target container or pod name",
|
|
42
|
+
required=False,
|
|
43
|
+
),
|
|
40
44
|
]
|
|
41
45
|
)
|
|
42
46
|
|
|
43
|
-
def __call__(
|
|
47
|
+
def __call__(
|
|
48
|
+
self, title: str, body: str, container_name: str | None = None
|
|
49
|
+
) -> dict:
|
|
50
|
+
name = container_name or self.container_name
|
|
51
|
+
if name is None:
|
|
52
|
+
raise ValueError("container_name must be provided")
|
|
44
53
|
if self.driver == "docker":
|
|
45
54
|
cmd = [
|
|
46
55
|
"docker",
|
|
47
56
|
"exec",
|
|
48
|
-
|
|
57
|
+
name,
|
|
49
58
|
"gh",
|
|
50
59
|
"pr",
|
|
51
60
|
"create",
|
|
@@ -58,7 +67,7 @@ class ContainerMakePrTool(ToolBase):
|
|
|
58
67
|
cmd = [
|
|
59
68
|
"kubectl",
|
|
60
69
|
"exec",
|
|
61
|
-
|
|
70
|
+
name,
|
|
62
71
|
"--",
|
|
63
72
|
"gh",
|
|
64
73
|
"pr",
|
{swarmauri_tool_containermakepr-0.7.5.dev1 → swarmauri_tool_containermakepr-0.9.0.dev3}/LICENSE
RENAMED
|
File without changes
|