phable-cli 0.1.1__tar.gz → 0.1.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.
- {phable_cli-0.1.1 → phable_cli-0.1.2}/PKG-INFO +2 -2
- {phable_cli-0.1.1 → phable_cli-0.1.2}/README.md +1 -1
- {phable_cli-0.1.1 → phable_cli-0.1.2}/phable_cli/cli.py +1 -0
- {phable_cli-0.1.1 → phable_cli-0.1.2}/phable_cli/phabricator.py +1 -1
- {phable_cli-0.1.1 → phable_cli-0.1.2}/pyproject.toml +1 -1
- {phable_cli-0.1.1 → phable_cli-0.1.2}/LICENSE +0 -0
- {phable_cli-0.1.1 → phable_cli-0.1.2}/phable_cli/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: phable-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Manage Phabricator tasks from the comfort of your terminal
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Balthazar Rouberol
|
|
@@ -59,7 +59,7 @@ Commands:
|
|
|
59
59
|
For `phable` to work, you need to define the following environment variables:
|
|
60
60
|
|
|
61
61
|
- `PHABRICATOR_URL`: URL to your phabricator instance. Ex: `PHABRICATOR_URL=https://phabricator.wikimedia.org`
|
|
62
|
-
- `
|
|
62
|
+
- `PHABRICATOR_TOKEN`: Generate a token from ${PHABRICATOR_URL}/settings/user/${YOUR_USERNAME}/page/apitokens/
|
|
63
63
|
- `PHABRICATOR_DEFAULT_PROJECT_PHID`: id for the Phabricator project to be used by default when creating tasks.
|
|
64
64
|
|
|
65
65
|
Note: to get `PHABRICATOR_DEFAULT_PROJECT_PHID`, define the first 2 environment variables, and run the following command, where T123456 is a task id belonging to your project.
|
|
@@ -40,7 +40,7 @@ Commands:
|
|
|
40
40
|
For `phable` to work, you need to define the following environment variables:
|
|
41
41
|
|
|
42
42
|
- `PHABRICATOR_URL`: URL to your phabricator instance. Ex: `PHABRICATOR_URL=https://phabricator.wikimedia.org`
|
|
43
|
-
- `
|
|
43
|
+
- `PHABRICATOR_TOKEN`: Generate a token from ${PHABRICATOR_URL}/settings/user/${YOUR_USERNAME}/page/apitokens/
|
|
44
44
|
- `PHABRICATOR_DEFAULT_PROJECT_PHID`: id for the Phabricator project to be used by default when creating tasks.
|
|
45
45
|
|
|
46
46
|
Note: to get `PHABRICATOR_DEFAULT_PROJECT_PHID`, define the first 2 environment variables, and run the following command, where T123456 is a task id belonging to your project.
|
|
@@ -111,7 +111,7 @@ class PhabricatorClient:
|
|
|
111
111
|
|
|
112
112
|
def mark_task_as_resolved(self, task_id: int) -> dict[str, Any]:
|
|
113
113
|
"""Set the status of the argument task to Resolved"""
|
|
114
|
-
return self.create_or_edit_task(task_id=task_id, params={"status": "
|
|
114
|
+
return self.create_or_edit_task(task_id=task_id, params={"status": "resolved"})
|
|
115
115
|
|
|
116
116
|
@cache
|
|
117
117
|
def show_user(self, phid: str) -> dict[str, Any] | None:
|
|
File without changes
|
|
File without changes
|