[PR #2133] [MERGED] Fix repo API bug #16250

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2133
Author: @ethantkoenig
Created: 7/9/2017
Status: Merged
Merged: 7/12/2017
Merged by: @bkcsoft

Base: masterHead: fix/repo_api


📝 Commits (2)

📊 Changes

9 files changed (+132 additions, -54 deletions)

View changed files

integrations/api_fork_test.go (+18 -0)
integrations/api_keys_test.go (+39 -0)
📝 integrations/api_repo_test.go (+12 -0)
📝 routers/api/v1/api.go (+43 -33)
📝 routers/api/v1/repo/fork.go (+2 -1)
📝 routers/api/v1/repo/release.go (+1 -7)
📝 routers/api/v1/repo/repo.go (+1 -7)
📝 routers/api/v1/repo/status.go (+1 -6)
routers/api/v1/utils/utils.go (+15 -0)

📄 Description

Don't require authentication for some GET API endpoints (e.g. GET /repos/:owner/:repo, GET /repos/:owner/:repo/issues, ...) whose corresponding Github endpoints do not require authentication.

Also add integration tests for some of the affected endpoints.


🔄 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/2133 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 7/9/2017 **Status:** ✅ Merged **Merged:** 7/12/2017 **Merged by:** [@bkcsoft](https://github.com/bkcsoft) **Base:** `master` ← **Head:** `fix/repo_api` --- ### 📝 Commits (2) - [`cd21bc6`](https://github.com/go-gitea/gitea/commit/cd21bc65220acef3dfb06322225fcc8d1eae3ba9) Fix repo API bug - [`3f0efdc`](https://github.com/go-gitea/gitea/commit/3f0efdc4d47206149bf7a2196c2a29c55df2c991) Missing reqToken() ### 📊 Changes **9 files changed** (+132 additions, -54 deletions) <details> <summary>View changed files</summary> ➕ `integrations/api_fork_test.go` (+18 -0) ➕ `integrations/api_keys_test.go` (+39 -0) 📝 `integrations/api_repo_test.go` (+12 -0) 📝 `routers/api/v1/api.go` (+43 -33) 📝 `routers/api/v1/repo/fork.go` (+2 -1) 📝 `routers/api/v1/repo/release.go` (+1 -7) 📝 `routers/api/v1/repo/repo.go` (+1 -7) 📝 `routers/api/v1/repo/status.go` (+1 -6) ➕ `routers/api/v1/utils/utils.go` (+15 -0) </details> ### 📄 Description Don't require authentication for some `GET` API endpoints (e.g. `GET /repos/:owner/:repo`, `GET /repos/:owner/:repo/issues`, ...) whose corresponding Github endpoints do not require authentication. Also add integration tests for some of the affected endpoints. --- <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:05:56 -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#16250