[PR #1622] [MERGED] bug fixed for API to get user's repos #15955

Closed
opened 2025-11-02 11:58:53 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1622
Author: @lunny
Created: 4/27/2017
Status: Merged
Merged: 4/29/2017
Merged by: @lunny

Base: masterHead: lunny/fix_api_user_repos


📝 Commits (3)

  • f4254ee bug fixed for API to get user's repos
  • d373263 add tests and fix another place
  • 8bb4a20 test user2 since user1 has no repos

📊 Changes

2 files changed (+30 additions, -4 deletions)

View changed files

integrations/api_repo_test.go (+23 -0)
📝 routers/api/v1/user/repo.go (+7 -4)

📄 Description

As title. Will fix #1540. And how to test APIs? Maybe we need a framework like intergration test to do that?


🔄 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/1622 **Author:** [@lunny](https://github.com/lunny) **Created:** 4/27/2017 **Status:** ✅ Merged **Merged:** 4/29/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `lunny/fix_api_user_repos` --- ### 📝 Commits (3) - [`f4254ee`](https://github.com/go-gitea/gitea/commit/f4254ee8c7d51323c009391b76176c6093edefee) bug fixed for API to get user's repos - [`d373263`](https://github.com/go-gitea/gitea/commit/d3732633afe3e1b8f88cb42dc20f194f9c357390) add tests and fix another place - [`8bb4a20`](https://github.com/go-gitea/gitea/commit/8bb4a202870c1bc5f91e604ffa829161d36583b7) test user2 since user1 has no repos ### 📊 Changes **2 files changed** (+30 additions, -4 deletions) <details> <summary>View changed files</summary> ➕ `integrations/api_repo_test.go` (+23 -0) 📝 `routers/api/v1/user/repo.go` (+7 -4) </details> ### 📄 Description As title. Will fix #1540. And how to test APIs? Maybe we need a framework like intergration test to do that? --- <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 11:58:53 -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#15955