From 23b63c0bf86fe7a1593c38a628137c5cb96aa077 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 17 2015 13:30:48 +0000 Subject: Allow specifying an identifier when creating a new issue --- diff --git a/progit/lib/__init__.py b/progit/lib/__init__.py index 62d4fca..e1bffff 100644 --- a/progit/lib/__init__.py +++ b/progit/lib/__init__.py @@ -394,12 +394,13 @@ def new_project(session, user, name, gitfolder, docfolder, ticketfolder, def new_issue(session, repo, title, content, user, ticketfolder, - issue_uid=None, private=False, status=None, notify=True): + issue_id=None, issue_uid=None, private=False, status=None, + notify=True): ''' Create a new issue for the specified repo. ''' user_obj = __get_user(session, user) issue = model.Issue( - id=get_next_id(session, repo.id), + id=issue_id or et_next_id(session, repo.id), project_id=repo.id, title=title, content=content,