[PR #844] [MERGED] fix: wrong pages number which includes private repository count. #15605

Closed
opened 2025-11-02 11:50:28 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/844
Author: @appleboy
Created: 2/5/2017
Status: Merged
Merged: 2/6/2017
Merged by: @lunny

Base: masterHead: patch-2004


📝 Commits (1)

  • ffa72dc fix: wrong pages number which includes private repository count.

📊 Changes

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

View changed files

📝 models/fixtures/repository.yml (+36 -0)
📝 models/repo.go (+18 -0)
📝 models/repo_test.go (+36 -2)
📝 routers/user/profile.go (+15 -2)

📄 Description

fix #843

  • Add unit testing.
  • Add GetPublicRepositoryCount func
  • Add GetPrivateRepositoryCount func

🔄 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/844 **Author:** [@appleboy](https://github.com/appleboy) **Created:** 2/5/2017 **Status:** ✅ Merged **Merged:** 2/6/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `patch-2004` --- ### 📝 Commits (1) - [`ffa72dc`](https://github.com/go-gitea/gitea/commit/ffa72dcc0e942ca220cb7e1de52606b7065c8239) fix: wrong pages number which includes private repository count. ### 📊 Changes **4 files changed** (+105 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `models/fixtures/repository.yml` (+36 -0) 📝 `models/repo.go` (+18 -0) 📝 `models/repo_test.go` (+36 -2) 📝 `routers/user/profile.go` (+15 -2) </details> ### 📄 Description fix #843 * Add unit testing. * Add `GetPublicRepositoryCount` func * Add `GetPrivateRepositoryCount` func --- <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:50:28 -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#15605