Создание сегодняшней версии.
This commit is contained in:
10
tasks.py
10
tasks.py
@@ -1,4 +1,5 @@
|
||||
from api import api
|
||||
from datetime import date, timedelta
|
||||
|
||||
|
||||
def release_current_version() -> None:
|
||||
@@ -6,3 +7,12 @@ def release_current_version() -> None:
|
||||
issues = api.get_release_issues(version["id"])
|
||||
for issue in issues:
|
||||
api.release_issue(issue["id"])
|
||||
|
||||
def add_version() -> None:
|
||||
today = date.today()
|
||||
api.add_version({
|
||||
"name": today.strftime("RELEASE-%d%m%y"),
|
||||
"due_date": (today + timedelta(weeks=1)).isoformat(),
|
||||
"description": today.strftime("Релиз от %d.%m.%y"),
|
||||
"sharing": "descendants"
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user