Bugfix for 1.1.0

This commit is contained in:
Jonathan Bernard
2010-02-18 11:24:22 -06:00
parent d596bea075
commit b6b190e480
10 changed files with 15 additions and 6 deletions

View File

@ -80,6 +80,7 @@ class Project {
if (!options.text) options.text = "Default issue title.\n" +
"====================\n"
String id = (issues.values().max { it.id.toInteger() }).id
id = (id.toInteger() + 1).toString().padLeft(id.length(), '0')
def issueFile = new File(source, Issue.makeFilename(id, options.category, options.priority))
assert !issueFile.exists()