[PR #3330] [CLOSED] Use raw status codes when calling ctx.Handle #16888

Closed
opened 2025-11-02 12:21:25 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3330
Author: @thehowl
Created: 1/8/2018
Status: Closed

Base: masterHead: use-codes-instead-of-consts


📝 Commits (1)

  • 9e6ff2f Use raw status codes when calling ctx.Handle

📊 Changes

4 files changed (+19 additions, -19 deletions)

View changed files

📝 routers/repo/http.go (+11 -11)
📝 routers/repo/issue_stopwatch.go (+4 -4)
📝 routers/repo/issue_timetrack.go (+2 -2)
📝 routers/repo/issue_watch.go (+2 -2)

📄 Description

Almost every instance of Context.Handle uses a raw HTTP status code - either 404 or 500. For consistency, I replaced the few instances where http.Status* was still used.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/3330 **Author:** [@thehowl](https://github.com/thehowl) **Created:** 1/8/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `use-codes-instead-of-consts` --- ### 📝 Commits (1) - [`9e6ff2f`](https://github.com/go-gitea/gitea/commit/9e6ff2fc8ae6cfa136bcd73832956217b3a076c9) Use raw status codes when calling ctx.Handle ### 📊 Changes **4 files changed** (+19 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `routers/repo/http.go` (+11 -11) 📝 `routers/repo/issue_stopwatch.go` (+4 -4) 📝 `routers/repo/issue_timetrack.go` (+2 -2) 📝 `routers/repo/issue_watch.go` (+2 -2) </details> ### 📄 Description Almost every instance of Context.Handle uses a raw HTTP status code - either 404 or 500. For consistency, I replaced the few instances where http.Status* was still used. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:21:25 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16888