From b7893df94325e69605ac40685769d7cfb1d54b0d Mon Sep 17 00:00:00 2001 From: "pavel.lamonov" Date: Wed, 22 Jul 2026 19:44:39 +0300 Subject: [PATCH] =?UTF-8?q?refs=20#62274=20=D0=97=D0=B0=D0=B4=D0=B0=D1=87?= =?UTF-8?q?=D0=B0=20=D0=BF=D0=BE=20=D0=BE=D1=82=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BA=D0=B5=20=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=20=D1=82=D0=B5?= =?UTF-8?q?=D0=BA=D1=83=D1=89=D0=B5=D0=B9=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8?= =?UTF-8?q?=D0=B8=20=D0=BD=D0=B0=20=D0=BE=D1=82=D0=B2=D0=B5=D1=82=D1=81?= =?UTF-8?q?=D1=82=D0=B2=D0=B5=D0=BD=D0=BD=D1=8B=D1=85.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.py | 2 +- tasks.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 tasks.py diff --git a/api.py b/api.py index f8e86a1..3ebab58 100644 --- a/api.py +++ b/api.py @@ -46,7 +46,7 @@ class RedmineAPI: def get_release_issues(self, version_id: int) -> list[dict]: result = self.get( "/issues.json", - params={"assigned_to_id": "me", "status_id": RELEASE_STATUS_ID, "fix_version_id": version_id} + params={"assigned_to_id": "me", "status_id": RELEASE_STATUS_ID, "fixed_version_id": version_id} ) return result["issues"] diff --git a/tasks.py b/tasks.py new file mode 100644 index 0000000..363d0e2 --- /dev/null +++ b/tasks.py @@ -0,0 +1,8 @@ +from api import api + + +def release_current_version() -> None: + version = api.get_current_version() + issues = api.get_release_issues(version["id"]) + for issue in issues: + api.release_issue(issue["id"])