update to 0.13, fix post to put
CICD / Explore-Gitea-Actions (push) Successful in 35s
Details
CICD / Explore-Gitea-Actions (push) Successful in 35s
Details
This commit is contained in:
parent
dcba33de17
commit
3f081c5776
|
@ -20,4 +20,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
CMD ["python", "main.py"]
|
CMD ["python", "main.py"]
|
||||||
#harbor.freshbrewed.science/library/vikunjamcp:0.12
|
#harbor.freshbrewed.science/library/vikunjamcp:0.13
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "vikunja",
|
"name": "vikunja",
|
||||||
"version": "1.0.12",
|
"version": "1.0.13",
|
||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"nodeServer": {
|
"nodeServer": {
|
||||||
"command": "docker",
|
"command": "docker",
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
"VIKUNJA_USERNAME",
|
"VIKUNJA_USERNAME",
|
||||||
"-e",
|
"-e",
|
||||||
"VIKUNJA_PASSWORD",
|
"VIKUNJA_PASSWORD",
|
||||||
"harbor.freshbrewed.science/library/vikunjamcp:0.12"
|
"harbor.freshbrewed.science/library/vikunjamcp:0.13"
|
||||||
],
|
],
|
||||||
"env": {
|
"env": {
|
||||||
"VIKUNJA_URL": "$VIKUNJA_URL",
|
"VIKUNJA_URL": "$VIKUNJA_URL",
|
||||||
|
|
4
main.py
4
main.py
|
@ -174,10 +174,10 @@ def comment_task(task_id: int, description: str):
|
||||||
if not (description or "").strip():
|
if not (description or "").strip():
|
||||||
return "Comment description cannot be empty."
|
return "Comment description cannot be empty."
|
||||||
|
|
||||||
payload = {"text": description}
|
payload = {"comment": description}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response = session.post(
|
response = session.put(
|
||||||
f"{VIKUNJA_URL}/api/v1/tasks/{task_id}/comments",
|
f"{VIKUNJA_URL}/api/v1/tasks/{task_id}/comments",
|
||||||
json=payload
|
json=payload
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue