From afe3b617d14c998daff3f35fe308d884c621db96 Mon Sep 17 00:00:00 2001 From: Vivek Anand Date: Feb 06 2017 18:37:39 +0000 Subject: Don't re-upadate private to default while updating milestone When we update milestone of an issue via git, we were unknowingly updating the ticket field and few others to their corresponding default values. With this commit, we pass on the correct values of the issue while editing the issue for editing the milestone --- diff --git a/pagure/lib/git.py b/pagure/lib/git.py index d52a9eb..6e2c301 100644 --- a/pagure/lib/git.py +++ b/pagure/lib/git.py @@ -567,6 +567,11 @@ def update_ticket_from_git( ticketfolder=None, user=user.username, milestone=milestone, + title=json_data.get('title'), + content=json_data.get('content'), + status=json_data.get('status'), + close_status=json_data.get('close_status'), + private=json_data.get('private'), ) if msgs: messages.extend(msgs)