phable-cli 0.1.4__tar.gz → 0.1.5__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.3
2
2
  Name: phable-cli
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: Manage Phabricator tasks from the comfort of your terminal
5
5
  License: MIT
6
6
  Author: Balthazar Rouberol
@@ -192,7 +192,6 @@ def create_task(
192
192
  task_params = {
193
193
  "title": title,
194
194
  "description": description,
195
- "projects.add": [config.phabricator_default_project_phid],
196
195
  "priority": priority,
197
196
  }
198
197
 
@@ -222,6 +221,8 @@ def create_task(
222
221
  ctx.fail(f"Project {tag} not found")
223
222
  if tag_projects_phids:
224
223
  task_params["projects.add"] = tag_projects_phids
224
+ else:
225
+ task_params["projects.add"] = [config.phabricator_default_project_phid]
225
226
 
226
227
  if owner:
227
228
  if owner_user := client.find_user_by_username(username=owner):
@@ -236,7 +237,7 @@ def create_task(
236
237
  cc_phids = []
237
238
  for username in cc:
238
239
  if user := client.find_user_by_username(username=username):
239
- cc_phids.appedn(user["phid"])
240
+ cc_phids.append(user["phid"])
240
241
  else:
241
242
  ctx.fail(f"User {owner} not found")
242
243
  if cc_phids:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "phable-cli"
3
- version = "0.1.4"
3
+ version = "0.1.5"
4
4
  description = "Manage Phabricator tasks from the comfort of your terminal"
5
5
  authors = ["Balthazar Rouberol <br@imap.cc>"]
6
6
  license = "MIT"
File without changes
File without changes