Add assignee and milestone to the new issue form.

This commit is contained in:
takezoe
2013-07-02 01:53:54 +09:00
parent 1fc91ee199
commit 2aa1edbf23
2 changed files with 58 additions and 23 deletions

View File

@@ -53,8 +53,12 @@ trait IssuesControllerBase extends ControllerBase {
// TODO requires users only and readable repository checking
get("/:owner/:repository/issues/new")( usersOnly {
getRepository(params("owner"), params("repository"), baseUrl)
.map (issues.html.create(_))
val owner = params("owner")
val repository = params("repository")
getRepository(owner, repository, baseUrl)
.map (issues.html.create((getCollaborators(owner, repository) :+ owner).sorted,
getMilestones(owner, repository), getLabels(owner, repository), _))
.getOrElse (NotFound)
})