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 . .
|
||||
|
||||
CMD ["python", "main.py"]
|
||||
#harbor.freshbrewed.science/library/vikunjamcp:0.12
|
||||
#harbor.freshbrewed.science/library/vikunjamcp:0.13
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "vikunja",
|
||||
"version": "1.0.12",
|
||||
"version": "1.0.13",
|
||||
"mcpServers": {
|
||||
"nodeServer": {
|
||||
"command": "docker",
|
||||
|
@ -14,7 +14,7 @@
|
|||
"VIKUNJA_USERNAME",
|
||||
"-e",
|
||||
"VIKUNJA_PASSWORD",
|
||||
"harbor.freshbrewed.science/library/vikunjamcp:0.12"
|
||||
"harbor.freshbrewed.science/library/vikunjamcp:0.13"
|
||||
],
|
||||
"env": {
|
||||
"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():
|
||||
return "Comment description cannot be empty."
|
||||
|
||||
payload = {"text": description}
|
||||
payload = {"comment": description}
|
||||
|
||||
try:
|
||||
response = session.post(
|
||||
response = session.put(
|
||||
f"{VIKUNJA_URL}/api/v1/tasks/{task_id}/comments",
|
||||
json=payload
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue