[PR #2047] [MERGED] API: support '/orgs/:org/repos' #16200

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2047
Author: @awwalker
Created: 6/24/2017
Status: Merged
Merged: 7/13/2017
Merged by: @bkcsoft

Base: masterHead: org


📝 Commits (9)

  • ec83c9c API: support '/orgs/:org/repos'
  • f471e48 use ctx.Org instead of OrgFromParams
  • bf8a451 login for test and use ctx.Org.Organization
  • b7a1dfd use proper org/user in test
  • f4c8365 validate correct num of repos returned
  • b351b38 update swagger.json
  • 5a6522b format imports/revise route
  • a49fdee reformat integration test
  • a0c2d77 remove print statements

📊 Changes

4 files changed (+57 additions, -1 deletions)

View changed files

📝 integrations/api_repo_test.go (+21 -0)
📝 public/swagger.v1.json (+17 -1)
📝 routers/api/v1/api.go (+1 -0)
📝 routers/api/v1/user/repo.go (+18 -0)

📄 Description

This is in favor of #1691 in order to fix #494.

Sorry for opening a new PR, but this new approach seems to address all of the concerns brought up in #494. I also added an integration test, but was unsure of how to create a test organization in the integrations directory. If this PR is approved of over #494 I'll close that one and we can focus on this one. Otherwise I'll go back to fixing that one and close this one.


🔄 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/2047 **Author:** [@awwalker](https://github.com/awwalker) **Created:** 6/24/2017 **Status:** ✅ Merged **Merged:** 7/13/2017 **Merged by:** [@bkcsoft](https://github.com/bkcsoft) **Base:** `master` ← **Head:** `org` --- ### 📝 Commits (9) - [`ec83c9c`](https://github.com/go-gitea/gitea/commit/ec83c9c997014a8d5e555e1524a4590de828a25b) API: support '/orgs/:org/repos' - [`f471e48`](https://github.com/go-gitea/gitea/commit/f471e48ed21b675bfc4e403d5e0db0e3ebbf0757) use ctx.Org instead of OrgFromParams - [`bf8a451`](https://github.com/go-gitea/gitea/commit/bf8a45109b44f9dc8627a6b65206d2609a90f501) login for test and use ctx.Org.Organization - [`b7a1dfd`](https://github.com/go-gitea/gitea/commit/b7a1dfd02431078521bbbb47cc151e991fd9c873) use proper org/user in test - [`f4c8365`](https://github.com/go-gitea/gitea/commit/f4c83655c80ec0cdc4bcf73b387f87d4910774e3) validate correct num of repos returned - [`b351b38`](https://github.com/go-gitea/gitea/commit/b351b38a0f2c148c1b135fc90312b94e444fc812) update swagger.json - [`5a6522b`](https://github.com/go-gitea/gitea/commit/5a6522bb97ca5db28f682795cc3749c4a16ecbc5) format imports/revise route - [`a49fdee`](https://github.com/go-gitea/gitea/commit/a49fdeedfa0c02998869b590879a4d38f30ba5d5) reformat integration test - [`a0c2d77`](https://github.com/go-gitea/gitea/commit/a0c2d773efc87b422e6d946ea2673c5c0c73fb90) remove print statements ### 📊 Changes **4 files changed** (+57 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `integrations/api_repo_test.go` (+21 -0) 📝 `public/swagger.v1.json` (+17 -1) 📝 `routers/api/v1/api.go` (+1 -0) 📝 `routers/api/v1/user/repo.go` (+18 -0) </details> ### 📄 Description This is in favor of #1691 in order to fix #494. Sorry for opening a new PR, but this new approach seems to address all of the concerns brought up in #494. I also added an integration test, but was unsure of how to create a test organization in the integrations directory. If this PR is approved of over #494 I'll close that one and we can focus on this one. Otherwise I'll go back to fixing that one and close this one. --- <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:04:34 -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#16200