Skip to content

Commit f555eb8

Browse files
committed
Make /issues match /pulls too - Fix go-gitea#17983
Signed-off-by: Andrew Thornton <[email protected]>
1 parent f7c4de4 commit f555eb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/web.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ func RegisterRoutes(m *web.Route) {
718718
}, context.RepoMustNotBeArchived(), reqRepoIssueReader)
719719
// FIXME: should use different URLs but mostly same logic for comments of issue and pull request.
720720
// So they can apply their own enable/disable logic on routers.
721-
m.Group("/issues", func() {
721+
m.Group("/{type:issues|pulls}", func() {
722722
m.Group("/{index}", func() {
723723
m.Post("/title", repo.UpdateIssueTitle)
724724
m.Post("/content", repo.UpdateIssueContent)

0 commit comments

Comments
 (0)