zt-devops-cli 0.2.1__tar.gz → 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zt-devops-cli
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: DevOps 平台迭代管理 CLI
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "zt-devops-cli"
7
- version = "0.2.1"
7
+ version = "0.2.2"
8
8
  description = "DevOps 平台迭代管理 CLI"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -190,7 +190,12 @@ def create_sprint(ctx, project, title, start_date, end_date, purpose, test_start
190
190
  test_start_date=test_start,
191
191
  test_end_date=test_end,
192
192
  )
193
- click.echo(f"创建成功! 迭代 ID: {result.get('id')}")
193
+
194
+ if result.get("0") == "0":
195
+ click.echo(f"创建成功! 迭代 ID: {result.get('id')}")
196
+ else:
197
+ click.echo(f"错误: {result.get('message')}", err=True)
198
+
194
199
  except Exception as e:
195
200
  click.echo(f"错误: {e}", err=True)
196
201
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zt-devops-cli
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: DevOps 平台迭代管理 CLI
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
File without changes
File without changes