Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow the cli to remove the assignee of an issue #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ For more options see `redmine create --help`.
$ redmine update 107873 --assignee 112
```

```
$ redmine update 107873 --assignee ''
```

For more options see `redmine update --help`.

### Filter issues
Expand Down
Empty file modified redmine/cli/main.py
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions redmine/journal.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def get_details(self):
prefix = "Attachment"
elif detail["property"] == "cf":
continue
elif detail["property"] == "attr":
continue
else:
raise KeyError(e)

Expand Down
2 changes: 1 addition & 1 deletion redmine/redmine.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def update_issue(self, issue_id, **kwargs):
}

for field in list(fields["issue"].keys()):
if not fields["issue"][field]:
if fields["issue"][field] == None:
del fields["issue"][field]

resp = requests.put(
Expand Down