mirror of https://github.com/go-gitea/gitea.git
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>pull/12479/head
parent
13c4c7a132
commit
6d3b8141df
|
@ -713,7 +713,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
||||||
m.Get("/:id", repo.MilestoneIssuesAndPulls)
|
m.Get("/:id", repo.MilestoneIssuesAndPulls)
|
||||||
}, reqRepoIssuesOrPullsReader, context.RepoRef())
|
}, reqRepoIssuesOrPullsReader, context.RepoRef())
|
||||||
m.Combo("/compare/*", repo.MustBeNotEmpty, reqRepoCodeReader, repo.SetEditorconfigIfExists).
|
m.Combo("/compare/*", repo.MustBeNotEmpty, reqRepoCodeReader, repo.SetEditorconfigIfExists).
|
||||||
Get(repo.SetDiffViewStyle, repo.CompareDiff).
|
Get(ignSignIn, repo.SetDiffViewStyle, repo.CompareDiff).
|
||||||
Post(reqSignIn, context.RepoMustNotBeArchived(), reqRepoPullsReader, repo.MustAllowPulls, bindIgnErr(auth.CreateIssueForm{}), repo.CompareAndPullRequestPost)
|
Post(reqSignIn, context.RepoMustNotBeArchived(), reqRepoPullsReader, repo.MustAllowPulls, bindIgnErr(auth.CreateIssueForm{}), repo.CompareAndPullRequestPost)
|
||||||
}, context.RepoAssignment(), context.UnitTypes())
|
}, context.RepoAssignment(), context.UnitTypes())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue