From 21f51e7af0d2121c1d67c656ccdb680eff3ff041 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 16 2015 13:26:17 +0000 Subject: Check if the new status is in the list of status and only act if it is --- diff --git a/progit/ui/issues.py b/progit/ui/issues.py index 597d303..ce61033 100644 --- a/progit/ui/issues.py +++ b/progit/ui/issues.py @@ -114,7 +114,7 @@ def update_issue(repo, issueid, username=None): 'view_issue', repo=repo.name, username=username, issueid=issueid)) - if new_status: + if new_status in status: message = progit.lib.edit_issue( SESSION, issue=issue,