-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Fix creation of Organization repos by Users with max created personal repos #11183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11183 +/- ##
==========================================
- Coverage 43.34% 43.20% -0.14%
==========================================
Files 601 604 +3
Lines 85675 86058 +383
==========================================
+ Hits 37133 37181 +48
- Misses 43956 44287 +331
- Partials 4586 4590 +4
Continue to review full report at Codecov.
|
Add a note for user.CanCreateRepo() about failure assumptions Change repo.create help message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
make lg-tm work |
… repos (go-gitea#11183) * Fix creation of Org repos Fix go-gitea#9269 * Change variable name to appease linter * Update PR with suggestions Add a note for user.CanCreateRepo() about failure assumptions Change repo.create help message Co-authored-by: guillep2k <[email protected]>
Creation of Organization repositories by Users with the maximum number of personal repositories is currently broken. Instead of crashing or giving an error message, don't display Organizations with the maximum number of repositories in the dropdown.
This will not change the initial selection in the dropdown as that is generated from the context. This will also not remove the user from the list if their number of repositories is at or beyond the maximum. It will also not affect Administrators, though that is intended.
Fix #9269