From 60e0e5a652adca77354a0104fbfac0b4300d1170 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 16 2015 11:30:18 +0000 Subject: Add a private argument to progit.lib.new_issue defaulting to False --- diff --git a/progit/lib/__init__.py b/progit/lib/__init__.py index 82cf16e..37fe099 100644 --- a/progit/lib/__init__.py +++ b/progit/lib/__init__.py @@ -391,7 +391,8 @@ def new_project(session, user, name, gitfolder, docfolder, ticketfolder, return 'Project "%s" created' % name -def new_issue(session, repo, title, content, user, ticketfolder): +def new_issue(session, repo, title, content, user, ticketfolder, + private=False): ''' Create a new issue for the specified repo. ''' user_obj = __get_user(session, user) @@ -402,6 +403,7 @@ def new_issue(session, repo, title, content, user, ticketfolder): content=content, user_id=user_obj.id, uid=uuid.uuid4().hex, + private=private, ) session.add(issue) # Make sure we won't have SQLAlchemy error before we create the issue