add the labels in the respective plugin

This commit is contained in:
Andreas Zweili 2021-11-06 21:38:11 +01:00
parent e4c1a9b7eb
commit 6b8faf3e31
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class GitlabAPI:
for issue in issues:
content = "[{title}]({url})".format(title=issue["title"],
url=issue["web_url"])
tasks.append({"content": content})
tasks.append({"content": content, "label_ids": [2158782094, ]})
return tasks
def get_issues(self) -> list:

View File

@ -32,5 +32,5 @@ class TodoistAPI:
+ self.token},
data=json.dumps({
"content": task["content"],
"label_ids": [2158782094, ]
"label_ids": task["label_ids"]
}))